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