37 references to MarkFieldValid
Microsoft.AspNetCore.Mvc.Abstractions.Test (27)
ModelBinding\ModelStateDictionaryTest.cs (27)
161source.MarkFieldValid("key"); 209source.MarkFieldValid("key"); 223source.MarkFieldValid("key"); 236source.MarkFieldValid("key"); 252var exception = Assert.Throws<InvalidOperationException>(() => source.MarkFieldValid("key")); 409dictionary.MarkFieldValid(key); 441dictionary.MarkFieldValid(key); 455dictionary.MarkFieldValid("foo"); 472dictionary.MarkFieldValid("foo"); 506modelState.MarkFieldValid("foo.bar.prop2"); 535dictionary.MarkFieldValid("foo"); 683dictionary.MarkFieldValid("user.Address"); 702dictionary.MarkFieldValid("user.Address"); 703dictionary.MarkFieldValid("user.Name"); 721dictionary.MarkFieldValid("[0].product.Name"); 722dictionary.MarkFieldValid("[0].product.Age[0]"); 737dictionary.MarkFieldValid("user.Address"); 738dictionary.MarkFieldValid("user.Name"); 1285dictionary.MarkFieldValid("Property1"); 1311dictionary.MarkFieldValid("Product"); 1344dictionary.MarkFieldValid("Product"); 1368dictionary.MarkFieldValid("Property1"); 1402dictionary.MarkFieldValid("Property1"); 1494dictionary.MarkFieldValid("Property1"); 1526dictionary.MarkFieldValid("Property1"); 1611dictionary.MarkFieldValid(key); 1705var exception = Assert.Throws<InvalidOperationException>(() => source.MarkFieldValid(key));
Microsoft.AspNetCore.Mvc.Core.Test (7)
ModelBinding\ModelBindingHelperTest.cs (7)
647dictionary.MarkFieldValid("Category"); 703dictionary.MarkFieldValid("[0].Category"); 705dictionary.MarkFieldValid("[1].Name"); 706dictionary.MarkFieldValid("[1].Id"); 748dictionary.MarkFieldValid("product.Category"); 749dictionary.MarkFieldValid("product.Category.Name"); 752dictionary.MarkFieldValid("product.Order[1].Name");
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
ValidationSummaryTagHelperTest.cs (1)
675modelState.MarkFieldValid(key);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
Rendering\HtmlHelperValidationSummaryTest.cs (2)
668modelState.MarkFieldValid("Property3.Empty"); 711modelState.MarkFieldValid("Empty");