274 instantiations of ModelStateDictionary
Microsoft.AspNetCore.Mvc.Abstractions (2)
ActionContext.cs (2)
24ModelState = new ModelStateDictionary(); 50: this(httpContext, routeData, actionDescriptor, new ModelStateDictionary())
Microsoft.AspNetCore.Mvc.Abstractions.Test (92)
ModelBinding\ModelStateDictionaryTest.cs (92)
18var dictionary = new ModelStateDictionary(); 34var dictionary = new ModelStateDictionary(); 54var dictionary = new ModelStateDictionary(); 71var modelStateDictionary = new ModelStateDictionary(); 97var modelStateDictionary = new ModelStateDictionary(); 111var dictionary = new ModelStateDictionary(); 130var dictionary = new ModelStateDictionary(); 146var source = new ModelStateDictionary(); 160var source = new ModelStateDictionary(); 174var source = new ModelStateDictionary(); 189var source = new ModelStateDictionary(); 205var source = new ModelStateDictionary(); 219var source = new ModelStateDictionary(); 233var source = new ModelStateDictionary(); 248var source = new ModelStateDictionary(); 264var source = new ModelStateDictionary(); 273var target = new ModelStateDictionary(source); 289var dictionary = new ModelStateDictionary(); 306var dictionary = new ModelStateDictionary(); 323var dictionary = new ModelStateDictionary(); 346var oldDictionary = new ModelStateDictionary(); 350var newDictionary = new ModelStateDictionary(oldDictionary); 361var dictionary = new ModelStateDictionary(); 374var dictionary = new ModelStateDictionary(); 391var dictionary = new ModelStateDictionary(); 408var dictionary = new ModelStateDictionary(); 424var dictionary = new ModelStateDictionary(); 440var dictionary = new ModelStateDictionary(); 454var dictionary = new ModelStateDictionary(); 471var dictionary = new ModelStateDictionary(); 488var modelState = new ModelStateDictionary(); 504var modelState = new ModelStateDictionary(); 519var modelState = new ModelStateDictionary(); 534var dictionary = new ModelStateDictionary(); 552var dictionary1 = new ModelStateDictionary(); 557var dictionary2 = new ModelStateDictionary(); 583var dictionary1 = new ModelStateDictionary(); 589var dictionary2 = new ModelStateDictionary(); 614var dictionary = new ModelStateDictionary(); 629var dictionary = new ModelStateDictionary(); 647var dictionary = new ModelStateDictionary(); 668var dictionary = new ModelStateDictionary(); 682var dictionary = new ModelStateDictionary(); 701var dictionary = new ModelStateDictionary(); 720var dictionary = new ModelStateDictionary(); 736var dictionary = new ModelStateDictionary(); 752var dictionary = new ModelStateDictionary 782var dictionary = new ModelStateDictionary 811var dictionary = new ModelStateDictionary 855var dictionary = new ModelStateDictionary 885var dictionary = new ModelStateDictionary 913var dictionary = new ModelStateDictionary 924var copy = new ModelStateDictionary(dictionary); 941var dictionary = new ModelStateDictionary() 962var dictionary = new ModelStateDictionary(); 978var dictionary = new ModelStateDictionary(); 995var dictionary = new ModelStateDictionary(); 1021var dictionary = new ModelStateDictionary(); 1049var dictionary = new ModelStateDictionary(); 1074var dictionary = new ModelStateDictionary(); 1091var dictionary = new ModelStateDictionary(); 1109var dictionary = new ModelStateDictionary(); 1136var dictionary = new ModelStateDictionary(); 1165var dictionary = new ModelStateDictionary(); 1191var dictionary = new ModelStateDictionary(); 1209var dictionary = new ModelStateDictionary(); 1227var dictionary = new ModelStateDictionary(); 1245var dictionary = new ModelStateDictionary(); 1265var dictionary = new ModelStateDictionary(); 1284var dictionary = new ModelStateDictionary(); 1310var dictionary = new ModelStateDictionary(); 1343var dictionary = new ModelStateDictionary(); 1367var dictionary = new ModelStateDictionary(); 1391var dictionary = new ModelStateDictionary(); 1401var dictionary = new ModelStateDictionary(); 1451var modelStateDictionary = new ModelStateDictionary(); 1479var dictionary = new ModelStateDictionary(); 1493var dictionary = new ModelStateDictionary(); 1512var dictionary = new ModelStateDictionary(); 1525var dictionary = new ModelStateDictionary(); 1571var modelStateDictionary = new ModelStateDictionary(); 1592var modelStateDictionary = new ModelStateDictionary(); 1607var dictionary = new ModelStateDictionary(); 1625var dictionary = new ModelStateDictionary(); 1647var dictionary = new ModelStateDictionary(); 1665var dictionary = new ModelStateDictionary(); 1682var dictionary = new ModelStateDictionary(); 1700var source = new ModelStateDictionary(); 1718var source = new ModelStateDictionary(); 1735var dictionary = new ModelStateDictionary(); 1746var dictionary = new ModelStateDictionary(); 1751var newDictionary = new ModelStateDictionary(dictionary);
Microsoft.AspNetCore.Mvc.Core.Test (68)
BadRequestObjectResultTests.cs (1)
27var badRequestObjectResult = new BadRequestObjectResult(new ModelStateDictionary());
ConflictObjectResultTest.cs (1)
27var conflictObjectResult = new ConflictObjectResult(new ModelStateDictionary());
ControllerBaseTest.cs (3)
2056var result = controller.BadRequest(new ModelStateDictionary()); 2102var result = controller.UnprocessableEntity(new ModelStateDictionary()); 2149var result = controller.Conflict(new ModelStateDictionary());
Filters\MiddlewareFilterBuilderTest.cs (3)
131new ModelStateDictionary()); 194new ModelStateDictionary()); 262new ModelStateDictionary());
Filters\MiddlewareFilterTest.cs (1)
220new ActionContext(httpContext, new RouteData(), new ActionDescriptor(), new ModelStateDictionary()),
Formatters\InputFormatterTest.cs (11)
42modelState: new ModelStateDictionary(), 76modelState: new ModelStateDictionary(), 107modelState: new ModelStateDictionary(), 141modelState: new ModelStateDictionary(), 172modelState: new ModelStateDictionary(), 209modelState: new ModelStateDictionary(), 239modelState: new ModelStateDictionary(), 277modelState: new ModelStateDictionary(), 306modelState: new ModelStateDictionary(), 388new ModelStateDictionary(), 417new ModelStateDictionary(),
Formatters\JsonInputFormatterTestBase.cs (1)
660modelState: new ModelStateDictionary(),
Formatters\TextInputFormatterTest.cs (7)
22new ModelStateDictionary(), 50new ModelStateDictionary(), 72new ModelStateDictionary(), 96new ModelStateDictionary(), 122new ModelStateDictionary(), 156new ModelStateDictionary(), 190new ModelStateDictionary(),
Infrastructure\ProblemDetailsFactoryTest.cs (3)
84var modelState = new ModelStateDictionary(); 114var modelState = new ModelStateDictionary(); 146var modelState = new ModelStateDictionary();
ModelBinding\Binders\BinderTypeModelBinderTest.cs (1)
82ModelState = new ModelStateDictionary(),
ModelBinding\Binders\BodyModelBinderTests.cs (1)
700ModelState = new ModelStateDictionary(),
ModelBinding\Binders\ByteArrayModelBinderTests.cs (1)
110ModelState = new ModelStateDictionary(),
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (4)
293ModelState = new ModelStateDictionary(), 345ModelState = new ModelStateDictionary(), 389ModelState = new ModelStateDictionary(), 1117ModelState = new ModelStateDictionary(),
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (5)
305ModelState = new ModelStateDictionary(), 353ModelState = new ModelStateDictionary(), 405ModelState = new ModelStateDictionary(), 449ModelState = new ModelStateDictionary(), 1281ModelState = new ModelStateDictionary(),
ModelBinding\Binders\DateTimeModelBinderTest.cs (1)
214ModelState = new ModelStateDictionary(),
ModelBinding\Binders\EnumTypeModelBinderTest.cs (1)
245ModelState = new ModelStateDictionary(),
ModelBinding\Binders\FloatingPointTypeModelBinderTestOfT.cs (1)
375ModelState = new ModelStateDictionary(),
ModelBinding\Binders\FormFileModelBinderTest.cs (1)
465ModelState = new ModelStateDictionary(),
ModelBinding\Binders\HeaderModelBinderTests.cs (1)
361ModelState = new ModelStateDictionary(),
ModelBinding\Binders\KeyValuePairModelBinderTest.cs (2)
207ModelState = new ModelStateDictionary(), 222ModelState = new ModelStateDictionary(),
ModelBinding\Binders\ServicesModelBinderTest.cs (1)
54ModelState = new ModelStateDictionary(),
ModelBinding\Binders\SimpleTypeModelBinderTest.cs (1)
492ModelState = new ModelStateDictionary(),
ModelBinding\Binders\TryParseTypeModelBinderTest.cs (1)
497ModelState = new ModelStateDictionary(),
ModelBinding\CompositeValueProviderTest.cs (1)
52var actionContext = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor(), new ModelStateDictionary());
ModelBinding\DefaultModelBindingContextTest.cs (1)
26ModelState = new ModelStateDictionary(),
ModelBinding\ModelBindingHelperTest.cs (4)
643var dictionary = new ModelStateDictionary(); 675var dictionary = new ModelStateDictionary(); 699var dictionary = new ModelStateDictionary(); 744var dictionary = new ModelStateDictionary();
ObjectResultTests.cs (1)
66var modelState = new ModelStateDictionary();
SerializableErrorTests.cs (5)
14var modelState = new ModelStateDictionary(); 33var modelState = new ModelStateDictionary(); 48var modelState = new ModelStateDictionary(); 63new SerializableError(new ModelStateDictionary()); 70var modelState = new ModelStateDictionary();
UnprocessableEntityObjectResultTests.cs (1)
27var result = new UnprocessableEntityObjectResult(new ModelStateDictionary());
ValidationProblemDetailsTest.cs (2)
25var modelStateDictionary = new ModelStateDictionary(); 54var modelStateDictionary = new ModelStateDictionary();
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (10)
SerializableErrorWrapperTests.cs (2)
48var serializableError = new SerializableErrorWrapper(new SerializableError(new ModelStateDictionary())); 99var modelState = new ModelStateDictionary();
XmlDataContractSerializerInputFormatterTest.cs (4)
73var modelState = new ModelStateDictionary(); 510var modelState = new ModelStateDictionary(); 574var modelState = new ModelStateDictionary(); 729modelState: new ModelStateDictionary(),
XmlSerializerInputFormatterTest.cs (4)
251var modelState = new ModelStateDictionary(); 531var modelState = new ModelStateDictionary(); 596var modelState = new ModelStateDictionary(); 665modelState: new ModelStateDictionary(),
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (6)
JsonPatchExtensionsTest.cs (4)
20var modelState = new ModelStateDictionary(); 38var modelState = new ModelStateDictionary(); 55var modelState = new ModelStateDictionary(); 80var modelState = new ModelStateDictionary();
NewtonsoftJsonPatchInputFormatterTest.cs (1)
249modelState: new ModelStateDictionary(),
src\Mvc\Mvc.Core\test\Formatters\JsonInputFormatterTestBase.cs (1)
660modelState: new ModelStateDictionary(),
Microsoft.AspNetCore.Mvc.Razor.Test (20)
Compilation\RazorPagePropertyActivatorTest.cs (6)
60var original = new ViewDataDictionary(modelMetadataProvider, new ModelStateDictionary()) 89var original = new ViewDataDictionary(modelMetadataProvider, new ModelStateDictionary()) 118var original = new ViewDataDictionary<object>(modelMetadataProvider, new ModelStateDictionary()) 147var original = new ViewDataDictionary<TestModel>(modelMetadataProvider, new ModelStateDictionary()) 176var original = new ViewDataDictionary<TestModel>(modelMetadataProvider, new ModelStateDictionary()) 203var original = new ViewDataDictionary<object>(modelMetadataProvider, new ModelStateDictionary());
DefaultTagHelperFactoryTest.cs (1)
157var viewData = new ViewDataDictionary(metadataProvider, new ModelStateDictionary());
Infrastructure\DefaultTagHelperActivatorTest.cs (1)
43var viewData = new ViewDataDictionary(metadataProvider, new ModelStateDictionary());
RazorPageActivatorTest.cs (6)
52var viewData = new ViewDataDictionary<MyModel>(MetadataProvider, new ModelStateDictionary()); 88var viewData = new ViewDataDictionary<object>(MetadataProvider, new ModelStateDictionary()); 112var viewData = new ViewDataDictionary<object>(MetadataProvider, new ModelStateDictionary()) 160var viewData = new ViewDataDictionary<MyModel>(MetadataProvider, new ModelStateDictionary()); 175var viewData = new ViewDataDictionary<object>(MetadataProvider, new ModelStateDictionary()) 243viewData = new ViewDataDictionary(MetadataProvider, new ModelStateDictionary());
RazorPageCreateModelExpressionTest.cs (1)
314var viewData = new ViewDataDictionary<RazorPageCreateModelExpressionModel>(provider, new ModelStateDictionary());
RazorPageCreateTagHelperTest.cs (1)
94var viewData = new ViewDataDictionary(new EmptyModelMetadataProvider(), new ModelStateDictionary());
RazorPageTest.cs (1)
1431new ViewDataDictionary(new EmptyModelMetadataProvider(), new ModelStateDictionary()),
RazorViewTest.cs (3)
61var viewData = new ViewDataDictionary(new EmptyModelMetadataProvider(), new ModelStateDictionary()); 99var viewData = new ViewDataDictionary(new EmptyModelMetadataProvider(), new ModelStateDictionary()); 1797new ViewDataDictionary(new EmptyModelMetadataProvider(), new ModelStateDictionary()),
Microsoft.AspNetCore.Mvc.RazorPages.Test (24)
Filters\PageHandlerResultFilterTest.cs (4)
22new ModelStateDictionary())); 60new ModelStateDictionary())); 101new ModelStateDictionary())); 143new ModelStateDictionary()));
Filters\PageViewDataAttributeFilterTest.cs (1)
71var viewData = new ViewDataDictionary(new EmptyModelMetadataProvider(), new ModelStateDictionary());
Infrastructure\DefaultPageFactoryProviderTest.cs (1)
221ViewData = new ViewDataDictionary<TestPage>(modelMetadataProvider, new ModelStateDictionary())
Infrastructure\PageHandlerPageFilterTest.cs (4)
22new ModelStateDictionary())); 61new ModelStateDictionary())); 103new ModelStateDictionary())); 146new ModelStateDictionary()));
PageModelTest.cs (8)
1723var modelState = new ModelStateDictionary(); 1850new ModelStateDictionary())); 1884new ModelStateDictionary())); 1919new ModelStateDictionary())); 1940var viewData = new ViewDataDictionary(modelMetadataProvider, new ModelStateDictionary()); 1964var viewData = new ViewDataDictionary(modelMetadataProvider, new ModelStateDictionary()); 1988var viewData = new ViewDataDictionary(new EmptyModelMetadataProvider(), new ModelStateDictionary()); 2010var viewData = new ViewDataDictionary(new EmptyModelMetadataProvider(), new ModelStateDictionary());
PageTest.cs (6)
23var modelState = new ModelStateDictionary(); 1713var viewData = new ViewDataDictionary(modelMetadataProvider, new ModelStateDictionary()); 1738var viewData = new ViewDataDictionary(modelMetadataProvider, new ModelStateDictionary()); 1763var viewData = new ViewDataDictionary(new EmptyModelMetadataProvider(), new ModelStateDictionary()); 1785var viewData = new ViewDataDictionary(new EmptyModelMetadataProvider(), new ModelStateDictionary()); 1807var viewData = new ViewDataDictionary(new EmptyModelMetadataProvider(), new ModelStateDictionary());
Microsoft.AspNetCore.Mvc.TagHelpers.Test (20)
CacheTagHelperTest.cs (1)
935new ViewDataDictionary(new EmptyModelMetadataProvider(), new ModelStateDictionary()),
CacheTagKeyTest.cs (1)
543new ViewDataDictionary(new EmptyModelMetadataProvider(), new ModelStateDictionary()),
DistributedCacheTagHelperTest.cs (1)
741new ViewDataDictionary(new EmptyModelMetadataProvider(), new ModelStateDictionary()),
FormTagHelperTest.cs (1)
1164new ViewDataDictionary(new TestModelMetadataProvider(), new ModelStateDictionary()),
ImageTagHelperTest.cs (1)
300var viewData = new ViewDataDictionary(metadataProvider, new ModelStateDictionary());
LinkTagHelperTest.cs (1)
1131var viewData = new ViewDataDictionary(metadataProvider, new ModelStateDictionary());
PartialTagHelperTest.cs (5)
42var viewData = new ViewDataDictionary(new EmptyModelMetadataProvider(), new ModelStateDictionary()) 276var viewData = new ViewDataDictionary(new TestModelMetadataProvider(), new ModelStateDictionary()); 578var viewData = new ViewDataDictionary(new TestModelMetadataProvider(), new ModelStateDictionary()); 715var viewData = new ViewDataDictionary(new TestModelMetadataProvider(), new ModelStateDictionary()); 843new ViewDataDictionary(new TestModelMetadataProvider(), new ModelStateDictionary()),
ScriptTagHelperTest.cs (1)
1112var viewData = new ViewDataDictionary(metadataProvider, new ModelStateDictionary());
TestableHtmlGenerator.cs (1)
65return GetViewContext(model, htmlGenerator, metadataProvider, modelState: new ModelStateDictionary());
ValidationMessageTagHelperTest.cs (1)
475new ModelStateDictionary()),
ValidationSummaryTagHelperTest.cs (6)
26var emptyModelState = new ModelStateDictionary(); 28var modelState = new ModelStateDictionary(); 139var emptyModelState = new ModelStateDictionary(); 141var modelState = new ModelStateDictionary(); 144var invalidModelState = new ModelStateDictionary(); 659new ModelStateDictionary()),
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
ViewDataDictionary.cs (2)
73: this(metadataProvider, new ModelStateDictionary()) 93: this(metadataProvider, new ModelStateDictionary(), declaredModelType)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (30)
ControllerTest.cs (1)
433var viewData = new ViewDataDictionary(metadataProvider, new ModelStateDictionary());
Filters\ControllerViewDataAttributeFilterTest.cs (1)
66var viewData = new ViewDataDictionary(new EmptyModelMetadataProvider(), new ModelStateDictionary());
ModelStateDictionaryExtensionsTest.cs (21)
12var dictionary = new ModelStateDictionary(); 29var dictionary = new ModelStateDictionary(); 46var dictionary = new ModelStateDictionary(); 64var dictionary = new ModelStateDictionary(); 81var dictionary = new ModelStateDictionary(); 99var dictionary = new ModelStateDictionary(); 119var dictionary = new ModelStateDictionary(); 137var dictionary = new ModelStateDictionary(); 157var dictionary = new ModelStateDictionary(); 175var dictionary = new ModelStateDictionary(); 195var dictionary = new ModelStateDictionary(); 214var dictionary = new ModelStateDictionary(); 235var dictionary = new ModelStateDictionary(); 249var dictionary = new ModelStateDictionary(); 263var dictionary = new ModelStateDictionary(); 278var dictionary = new ModelStateDictionary(); 292var dictionary = new ModelStateDictionary(); 313var dictionary = new ModelStateDictionary(); 333var dictionary = new ModelStateDictionary(); 353var dictionary = new ModelStateDictionary(); 375var dictionary = new ModelStateDictionary();
Rendering\HtmlHelperSelectTest.cs (4)
411var modelState = new ModelStateDictionary(); 448var modelState = new ModelStateDictionary(); 814var modelState = new ModelStateDictionary(); 851var modelState = new ModelStateDictionary();
ViewDataDictionaryOfTModelTest.cs (1)
16var modelState = new ModelStateDictionary();
ViewDataDictionaryTest.cs (2)
34var modelState = new ModelStateDictionary(); 56var modelState = new ModelStateDictionary();
933 references to ModelStateDictionary
Microsoft.AspNetCore.Mvc.Abstractions (56)
ActionContext.cs (4)
60/// <param name="modelState">The <see cref="ModelStateDictionary"/>.</param> 65ModelStateDictionary modelState) 95/// Gets the <see cref="ModelStateDictionary"/>. 97public ModelStateDictionary ModelState { get; } = default!;
Formatters\InputFormatterContext.cs (6)
23/// The <see cref="ModelStateDictionary"/> for recording errors. 34ModelStateDictionary modelState, 49/// The <see cref="ModelStateDictionary"/> for recording errors. 63ModelStateDictionary modelState, 103/// Gets the <see cref="ModelStateDictionary"/> associated with the current operation. 105public ModelStateDictionary ModelState { get; }
ModelBinding\ModelBindingContext.cs (2)
76/// Gets or sets the <see cref="ModelStateDictionary"/> used to capture <see cref="ModelStateEntry"/> values 82public abstract ModelStateDictionary ModelState { get; set; }
ModelBinding\ModelStateDictionary.cs (38)
40/// Initializes a new instance of the <see cref="ModelStateDictionary"/> class. 48/// Initializes a new instance of the <see cref="ModelStateDictionary"/> class. 56/// Initializes a new instance of the <see cref="ModelStateDictionary"/> class. 71/// Initializes a new instance of the <see cref="ModelStateDictionary"/> class by using values that are copied 74/// <param name="dictionary">The <see cref="ModelStateDictionary"/> to copy values from.</param> 75public ModelStateDictionary(ModelStateDictionary dictionary) 86/// Root entry for the <see cref="ModelStateDictionary"/>. 91/// Gets or sets the maximum allowed model state errors in this instance of <see cref="ModelStateDictionary"/>. 96/// <see cref="ModelStateDictionary"/> tracks the number of model errors added by calls to 131/// Gets the number of errors added to this instance of <see cref="ModelStateDictionary"/> via 196/// This method allows adding the <paramref name="exception"/> to the current <see cref="ModelStateDictionary"/> 444/// <param name="dictionary">The <see cref="ModelStateDictionary"/> to copy values from.</param> 445public void Merge(ModelStateDictionary dictionary) 512/// Clears <see cref="ModelStateDictionary"/> entries that match the key that is passed as parameter. 514/// <param name="key">The key of <see cref="ModelStateDictionary"/> to clear.</param> 689/// Removes all keys and values from this instance of <see cref="ModelStateDictionary"/>. 747/// Returns an enumerator that iterates through this instance of <see cref="ModelStateDictionary"/>. 802/// Gets a <see cref="PrefixEnumerable"/> that iterates over this instance of <see cref="ModelStateDictionary"/> 969/// Enumerates over <see cref="ModelStateDictionary"/> to provide entries that start with the 974private readonly ModelStateDictionary _dictionary; 980/// <param name="dictionary">The <see cref="ModelStateDictionary"/>.</param> 982public PrefixEnumerable(ModelStateDictionary dictionary, string prefix) 1014/// <param name="dictionary">The <see cref="ModelStateDictionary"/>.</param> 1016public Enumerator(ModelStateDictionary dictionary, string prefix) 1110/// A <see cref="IEnumerable{T}"/> for keys in <see cref="ModelStateDictionary"/>. 1114private readonly ModelStateDictionary _dictionary; 1119/// <param name="dictionary">The <see cref="ModelStateDictionary"/>.</param> 1120public KeyEnumerable(ModelStateDictionary dictionary) 1134/// An <see cref="IEnumerator{T}"/> for keys in <see cref="ModelStateDictionary"/>. 1143/// <param name="dictionary">The <see cref="ModelStateDictionary"/>.</param> 1145public KeyEnumerator(ModelStateDictionary dictionary, string prefix) 1189private readonly ModelStateDictionary _dictionary; 1194/// <param name="dictionary">The <see cref="ModelStateDictionary"/>.</param> 1195public ValueEnumerable(ModelStateDictionary dictionary) 1218/// <param name="dictionary">The <see cref="ModelStateDictionary"/>.</param> 1220public ValueEnumerator(ModelStateDictionary dictionary, string prefix) 1259private sealed class ModelStateDictionaryDebugView(ModelStateDictionary dictionary) 1261private readonly ModelStateDictionary _dictionary = dictionary;
ModelBinding\ModelStateEntry.cs (2)
7/// An entry in a <see cref="ModelStateDictionary"/>. 46/// <see cref="ModelStateDictionary"/>.
ModelBinding\ModelValidationState.cs (4)
9/// <see cref="ModelValidationState"/> of <see cref="ModelStateDictionary.Root"/> is used to determine the validity 10/// of <see cref="ModelStateDictionary"/>. <see cref="ModelStateDictionary.IsValid"/> is <see langword="true" />, when 11/// the aggregate validity (<see cref="ModelStateDictionary.GetFieldValidationState(string)"/>)
Microsoft.AspNetCore.Mvc.Abstractions.Test (94)
ModelBinding\ModelStateDictionaryTest.cs (94)
18var dictionary = new ModelStateDictionary(); 34var dictionary = new ModelStateDictionary(); 54var dictionary = new ModelStateDictionary(); 71var modelStateDictionary = new ModelStateDictionary(); 97var modelStateDictionary = new ModelStateDictionary(); 111var dictionary = new ModelStateDictionary(); 130var dictionary = new ModelStateDictionary(); 146var source = new ModelStateDictionary(); 160var source = new ModelStateDictionary(); 174var source = new ModelStateDictionary(); 189var source = new ModelStateDictionary(); 205var source = new ModelStateDictionary(); 219var source = new ModelStateDictionary(); 233var source = new ModelStateDictionary(); 248var source = new ModelStateDictionary(); 264var source = new ModelStateDictionary(); 273var target = new ModelStateDictionary(source); 289var dictionary = new ModelStateDictionary(); 306var dictionary = new ModelStateDictionary(); 323var dictionary = new ModelStateDictionary(); 346var oldDictionary = new ModelStateDictionary(); 350var newDictionary = new ModelStateDictionary(oldDictionary); 361var dictionary = new ModelStateDictionary(); 374var dictionary = new ModelStateDictionary(); 391var dictionary = new ModelStateDictionary(); 408var dictionary = new ModelStateDictionary(); 424var dictionary = new ModelStateDictionary(); 440var dictionary = new ModelStateDictionary(); 454var dictionary = new ModelStateDictionary(); 471var dictionary = new ModelStateDictionary(); 488var modelState = new ModelStateDictionary(); 504var modelState = new ModelStateDictionary(); 519var modelState = new ModelStateDictionary(); 534var dictionary = new ModelStateDictionary(); 552var dictionary1 = new ModelStateDictionary(); 557var dictionary2 = new ModelStateDictionary(); 583var dictionary1 = new ModelStateDictionary(); 589var dictionary2 = new ModelStateDictionary(); 614var dictionary = new ModelStateDictionary(); 629var dictionary = new ModelStateDictionary(); 647var dictionary = new ModelStateDictionary(); 668var dictionary = new ModelStateDictionary(); 682var dictionary = new ModelStateDictionary(); 701var dictionary = new ModelStateDictionary(); 720var dictionary = new ModelStateDictionary(); 736var dictionary = new ModelStateDictionary(); 752var dictionary = new ModelStateDictionary 782var dictionary = new ModelStateDictionary 811var dictionary = new ModelStateDictionary 855var dictionary = new ModelStateDictionary 885var dictionary = new ModelStateDictionary 913var dictionary = new ModelStateDictionary 924var copy = new ModelStateDictionary(dictionary); 941var dictionary = new ModelStateDictionary() 962var dictionary = new ModelStateDictionary(); 978var dictionary = new ModelStateDictionary(); 995var dictionary = new ModelStateDictionary(); 1021var dictionary = new ModelStateDictionary(); 1049var dictionary = new ModelStateDictionary(); 1074var dictionary = new ModelStateDictionary(); 1091var dictionary = new ModelStateDictionary(); 1109var dictionary = new ModelStateDictionary(); 1136var dictionary = new ModelStateDictionary(); 1165var dictionary = new ModelStateDictionary(); 1191var dictionary = new ModelStateDictionary(); 1209var dictionary = new ModelStateDictionary(); 1227var dictionary = new ModelStateDictionary(); 1245var dictionary = new ModelStateDictionary(); 1265var dictionary = new ModelStateDictionary(); 1284var dictionary = new ModelStateDictionary(); 1310var dictionary = new ModelStateDictionary(); 1343var dictionary = new ModelStateDictionary(); 1367var dictionary = new ModelStateDictionary(); 1391var dictionary = new ModelStateDictionary(); 1401var dictionary = new ModelStateDictionary(); 1451var modelStateDictionary = new ModelStateDictionary(); 1479var dictionary = new ModelStateDictionary(); 1493var dictionary = new ModelStateDictionary(); 1512var dictionary = new ModelStateDictionary(); 1525var dictionary = new ModelStateDictionary(); 1571var modelStateDictionary = new ModelStateDictionary(); 1592var modelStateDictionary = new ModelStateDictionary(); 1607var dictionary = new ModelStateDictionary(); 1625var dictionary = new ModelStateDictionary(); 1647var dictionary = new ModelStateDictionary(); 1665var dictionary = new ModelStateDictionary(); 1682var dictionary = new ModelStateDictionary(); 1700var source = new ModelStateDictionary(); 1718var source = new ModelStateDictionary(); 1735var dictionary = new ModelStateDictionary(); 1738Assert.Equal(ModelStateDictionary.DefaultMaxRecursionDepth, dictionary.MaxValidationDepth); 1739Assert.Equal(ModelStateDictionary.DefaultMaxRecursionDepth, dictionary.MaxStateDepth); 1746var dictionary = new ModelStateDictionary(); 1751var newDictionary = new ModelStateDictionary(dictionary);
Microsoft.AspNetCore.Mvc.Core (60)
ApiBehaviorOptions.cs (1)
22/// <see cref="ModelStateDictionary"/> into an <see cref="IActionResult"/>
BadRequestObjectResult.cs (2)
31/// <param name="modelState"><see cref="ModelStateDictionary"/> containing the validation errors.</param> 32public BadRequestObjectResult([ActionResultObjectValue] ModelStateDictionary modelState)
ConflictObjectResult.cs (2)
31/// <param name="modelState"><see cref="ModelStateDictionary"/> containing the validation errors.</param> 32public ConflictObjectResult([ActionResultObjectValue] ModelStateDictionary modelState)
ControllerBase.cs (14)
55/// Gets the <see cref="ModelStateDictionary"/> that contains the state of the model and of model-binding validation. 57public ModelStateDictionary ModelState => ControllerContext.ModelState; 1762/// <param name="modelState">The <see cref="ModelStateDictionary" /> containing errors to be returned to the client.</param> 1765public virtual BadRequestObjectResult BadRequest([ActionResultObjectValue] ModelStateDictionary modelState) 1792/// <param name="modelState">The <see cref="ModelStateDictionary" /> containing errors to be returned to the client.</param> 1795public virtual UnprocessableEntityObjectResult UnprocessableEntity([ActionResultObjectValue] ModelStateDictionary modelState) 1822/// <param name="modelState">The <see cref="ModelStateDictionary" /> containing errors to be returned to the client.</param> 1825public virtual ConflictObjectResult Conflict([ActionResultObjectValue] ModelStateDictionary modelState) 1921/// <param name="modelStateDictionary">The <see cref="ModelStateDictionary"/>.</param> 1925public virtual ActionResult ValidationProblem([ActionResultObjectValue] ModelStateDictionary modelStateDictionary) 1947/// <param name="modelStateDictionary">The <see cref="ModelStateDictionary"/>. 1959[ActionResultObjectValue] ModelStateDictionary? modelStateDictionary) 1971/// <param name="modelStateDictionary">The <see cref="ModelStateDictionary"/>. 1983[ActionResultObjectValue] ModelStateDictionary? modelStateDictionary = null,
Infrastructure\DefaultProblemDetailsFactory.cs (1)
65ModelStateDictionary modelStateDictionary,
Infrastructure\ProblemDetailsFactory.cs (2)
36/// <param name="modelStateDictionary">The <see cref="ModelStateDictionary" />.</param> 45ModelStateDictionary modelStateDictionary,
JsonOptions.cs (2)
18/// <see cref="SystemTextJsonInputFormatter"/> will be added to the <see cref="ModelStateDictionary"/>. If 25/// Error messages in the <see cref="ModelStateDictionary"/> are often communicated to clients, either in HTML
ModelBinding\Binders\ArrayModelBinder.cs (2)
40/// adds a <see cref="ModelStateDictionary"/> error when the model is not bound. 65/// adds a <see cref="ModelStateDictionary"/> error when the model is not bound.
ModelBinding\Binders\CollectionModelBinder.cs (2)
50/// adds a <see cref="ModelStateDictionary"/> error when the model is not bound. 75/// adds a <see cref="ModelStateDictionary"/> error when the model is not bound.
ModelBinding\Binders\ComplexObjectModelBinder.cs (1)
726var modelState = bindingContext.ModelState;
ModelBinding\Binders\ComplexTypeModelBinder.cs (2)
62/// adds a <see cref="ModelStateDictionary"/> error when the model is not bound. 564var modelState = bindingContext.ModelState;
ModelBinding\Binders\DateTimeModelBinder.cs (1)
50var modelState = bindingContext.ModelState;
ModelBinding\Binders\DecimalModelBinder.cs (1)
52var modelState = bindingContext.ModelState;
ModelBinding\Binders\DictionaryModelBinder.cs (2)
45/// adds a <see cref="ModelStateDictionary"/> error when the model is not bound. 79/// adds a <see cref="ModelStateDictionary"/> error when the model is not bound.
ModelBinding\Binders\DoubleModelBinder.cs (1)
52var modelState = bindingContext.ModelState;
ModelBinding\Binders\FloatModelBinder.cs (1)
52var modelState = bindingContext.ModelState;
ModelBinding\DefaultModelBindingContext.cs (2)
22private ModelStateDictionary _modelState = default!; 81public override ModelStateDictionary ModelState
ModelBinding\ElementalValueProvider.cs (1)
27return ModelStateDictionary.StartsWithPrefix(prefix, Key);
ModelBinding\ModelBindingHelper.cs (7)
239var modelState = actionContext.ModelState; 358/// Clears <see cref="ModelStateDictionary"/> entries for <see cref="ModelMetadata"/>. 361/// <param name="modelState">The <see cref="ModelStateDictionary"/> associated with the model.</param> 366ModelStateDictionary modelState, 378/// Clears <see cref="ModelStateDictionary"/> entries for <see cref="ModelMetadata"/>. 381/// <param name="modelState">The <see cref="ModelStateDictionary"/> associated with the model.</param> 385ModelStateDictionary modelState,
ModelBinding\UnsupportedContentTypeFilter.cs (1)
37var modelState = context.ModelState;
ModelBinding\Validation\ShortFormDictionaryValidationStrategy.cs (2)
38/// The mapping from <see cref="ModelStateDictionary"/> key to dictionary key. 52/// Gets the mapping from <see cref="ModelStateDictionary"/> key to dictionary key.
ModelBinding\Validation\ValidationVisitor.cs (1)
75protected ModelStateDictionary ModelState { get; }
MvcOptions.cs (2)
30private int _maxModelStateErrors = ModelStateDictionary.DefaultMaxAllowedErrors; 71/// <see cref="ModelStateDictionary"/> if the incoming request body is empty.
SerializableError.cs (2)
27/// <param name="modelState"><see cref="ModelStateDictionary"/> containing the validation errors.</param> 28public SerializableError(ModelStateDictionary modelState)
UnprocessableEntityObjectResult.cs (2)
21/// <param name="modelState"><see cref="ModelStateDictionary"/> containing the validation errors.</param> 22public UnprocessableEntityObjectResult([ActionResultObjectValue] ModelStateDictionary modelState)
ValidationProblemDetails.cs (3)
27/// <param name="modelState"><see cref="ModelStateDictionary"/> containing the validation errors.</param> 28public ValidationProblemDetails(ModelStateDictionary modelState) 33private static IDictionary<string, string[]> CreateErrorDictionary(ModelStateDictionary modelState)
Microsoft.AspNetCore.Mvc.Core.Test (77)
Controllers\ControllerBinderDelegateProviderTest.cs (2)
1177var modelState = controllerContext.ModelState; 1229var modelState = controllerContext.ModelState;
DependencyInjection\ApiBehaviorOptionsSetupTest.cs (1)
77var factory = Mock.Of<ProblemDetailsFactory>(m => m.CreateValidationProblemDetails(It.IsAny<HttpContext>(), It.IsAny<ModelStateDictionary>(), null, null, null, null, null) == new ValidationProblemDetails
Infrastructure\ProblemDetailsFactoryTest.cs (3)
84var modelState = new ModelStateDictionary(); 114var modelState = new ModelStateDictionary(); 146var modelState = new ModelStateDictionary();
ModelBinding\Binders\CollectionModelBinderTest.cs (4)
77var modelState = bindingContext.ModelState; 106var modelState = bindingContext.ModelState; 134var modelState = bindingContext.ModelState; 158var modelState = bindingContext.ModelState;
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (6)
615var modelStateDictionary = bindingContext.ModelState; 680var modelStateDictionary = bindingContext.ModelState; 719var modelStateDictionary = bindingContext.ModelState; 751var modelStateDictionary = bindingContext.ModelState; 774var modelStateDictionary = bindingContext.ModelState; 980var modelState = bindingContext.ModelState;
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (6)
793var modelStateDictionary = bindingContext.ModelState; 827var modelStateDictionary = bindingContext.ModelState; 863var modelStateDictionary = bindingContext.ModelState; 892var modelStateDictionary = bindingContext.ModelState; 912var modelStateDictionary = bindingContext.ModelState; 1142var modelState = bindingContext.ModelState;
ModelBinding\CompositeValueProviderTest.cs (1)
59var modelState = actionContext.ModelState;
ModelBinding\ModelBindingHelperTest.cs (5)
70var modelState = actionContext.ModelState; 643var dictionary = new ModelStateDictionary(); 675var dictionary = new ModelStateDictionary(); 699var dictionary = new ModelStateDictionary(); 744var dictionary = new ModelStateDictionary();
ModelBinding\ParameterBinderTest.cs (3)
534var modelState = actionContext.ModelState; 593var modelState = actionContext.ModelState; 665var modelState = actionContext.ModelState;
ModelBinding\Validation\DefaultObjectValidatorTests.cs (39)
26var modelState = actionContext.ModelState; 52var modelState = actionContext.ModelState; 79var modelState = actionContext.ModelState; 108var modelState = actionContext.ModelState; 136var modelState = actionContext.ModelState; 157var modelState = actionContext.ModelState; 189var modelState = actionContext.ModelState; 221var modelState = actionContext.ModelState; 253var modelState = actionContext.ModelState; 295var modelState = actionContext.ModelState; 327var modelState = actionContext.ModelState; 359var modelState = actionContext.ModelState; 400var modelState = actionContext.ModelState; 434var modelState = actionContext.ModelState; 471var modelState = actionContext.ModelState; 516var modelState = actionContext.ModelState; 589var modelState = actionContext.ModelState; 618var modelState = actionContext.ModelState; 646var modelState = actionContext.ModelState; 682var modelState = actionContext.ModelState; 717var modelState = actionContext.ModelState; 754var modelState = actionContext.ModelState; 787var modelState = actionContext.ModelState; 830var modelState = actionContext.ModelState; 905var modelState = actionContext.ModelState; 946var modelState = actionContext.ModelState; 980var modelState = actionContext.ModelState; 1027var modelState = actionContext.ModelState; 1087var modelState = actionContext.ModelState; 1108var modelState = actionContext.ModelState; 1128var modelState = actionContext.ModelState; 1161var modelState = actionContext.ModelState; 1202var modelState = actionContext.ModelState; 1225var modelState = actionContext.ModelState; 1354var modelState = actionContext.ModelState; 1377var modelState = actionContext.ModelState; 1399var modelState = actionContext.ModelState; 1429var modelState = actionContext.ModelState; 1481private static void AssertKeysEqual(ModelStateDictionary modelState, params string[] keys)
ObjectResultTests.cs (1)
66var modelState = new ModelStateDictionary();
SerializableErrorTests.cs (4)
14var modelState = new ModelStateDictionary(); 33var modelState = new ModelStateDictionary(); 48var modelState = new ModelStateDictionary(); 70var modelState = new ModelStateDictionary();
ValidationProblemDetailsTest.cs (2)
25var modelStateDictionary = new ModelStateDictionary(); 54var modelStateDictionary = new ModelStateDictionary();
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
SimpleValueProvider.cs (1)
27if (ModelStateDictionary.StartsWithPrefix(prefix, key))
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (7)
SerializableErrorWrapperTests.cs (1)
99var modelState = new ModelStateDictionary();
XmlDataContractSerializerInputFormatterTest.cs (3)
73var modelState = new ModelStateDictionary(); 510var modelState = new ModelStateDictionary(); 574var modelState = new ModelStateDictionary();
XmlSerializerInputFormatterTest.cs (3)
251var modelState = new ModelStateDictionary(); 531var modelState = new ModelStateDictionary(); 596var modelState = new ModelStateDictionary();
Microsoft.AspNetCore.Mvc.IntegrationTests (493)
ActionParametersIntegrationTest.cs (20)
49var modelState = testContext.ModelState; 95var modelState = testContext.ModelState; 142var modelState = testContext.ModelState; 190var modelState = testContext.ModelState; 230var modelState = testContext.ModelState; 274var modelState = testContext.ModelState; 321var modelState = testContext.ModelState; 366var modelState = testContext.ModelState; 401var modelState = testContext.ModelState; 434var modelState = testContext.ModelState; 468var modelState = testContext.ModelState; 554var modelState = testContext.ModelState; 587var modelState = testContext.ModelState; 605var modelState = testContext.ModelState; 647var modelState = testContext.ModelState; 680var modelState = testContext.ModelState; 725var modelState = testContext.ModelState; 778var modelState = testContext.ModelState; 820var modelState = testContext.ModelState; 865var modelState = testContext.ModelState;
ArrayModelBinderIntegrationTest.cs (10)
29var modelState = testContext.ModelState; 73var modelState = testContext.ModelState; 113var modelState = testContext.ModelState; 153var modelState = testContext.ModelState; 188var modelState = testContext.ModelState; 233var modelState = testContext.ModelState; 274var modelState = testContext.ModelState; 315var modelState = testContext.ModelState; 352var modelState = testContext.ModelState; 393var modelState = testContext.ModelState;
BinderTypeBasedModelBinderIntegrationTest.cs (7)
32var modelState = testContext.ModelState; 66var modelState = testContext.ModelState; 103var modelState = testContext.ModelState; 166var modelState = testContext.ModelState; 217var modelState = testContext.ModelState; 254var modelState = testContext.ModelState; 293var modelState = testContext.ModelState;
BindingSourceMetadataProviderIntegrationTest.cs (2)
42var modelState = testContext.ModelState; 96var modelState = testContext.ModelState;
BodyValidationIntegrationTests.cs (20)
40var modelState = testContext.ModelState; 80var modelState = testContext.ModelState; 115var modelState = testContext.ModelState; 165var modelState = testContext.ModelState; 206var modelState = testContext.ModelState; 246var modelState = testContext.ModelState; 282var modelState = testContext.ModelState; 327var modelState = testContext.ModelState; 377var modelState = testContext.ModelState; 419var modelState = testContext.ModelState; 467var modelState = testContext.ModelState; 531var modelState = testContext.ModelState; 573var modelState = testContext.ModelState; 626var modelState = testContext.ModelState; 671var modelState = testContext.ModelState; 721var modelState = testContext.ModelState; 779var modelState = testContext.ModelState; 826var modelState = testContext.ModelState; 872var modelState = testContext.ModelState; 893private Dictionary<string, string> CreateValidationDictionary(ModelStateDictionary modelState)
ByteArrayModelBinderIntegrationTest.cs (3)
42var modelState = testContext.ModelState; 87var modelState = testContext.ModelState; 126var modelState = testContext.ModelState;
CancellationTokenModelBinderIntegrationTest.cs (3)
33var modelState = testContext.ModelState; 69var modelState = testContext.ModelState; 108var modelState = testContext.ModelState;
CollectionModelBinderIntegrationTest.cs (23)
35var modelState = testContext.ModelState; 83var modelState = testContext.ModelState; 119var modelState = testContext.ModelState; 151var modelState = testContext.ModelState; 191var modelState = testContext.ModelState; 231var modelState = testContext.ModelState; 264var modelState = testContext.ModelState; 302var modelState = testContext.ModelState; 361var modelState = testContext.ModelState; 412var modelState = testContext.ModelState; 464var modelState = testContext.ModelState; 507var modelState = testContext.ModelState; 558var modelState = testContext.ModelState; 608var modelState = testContext.ModelState; 665var modelState = testContext.ModelState; 705var modelState = testContext.ModelState; 948var modelState = testContext.ModelState; 990var modelState = testContext.ModelState; 1019var modelState = testContext.ModelState; 1076var modelState = testContext.ModelState; 1114var modelState = testContext.ModelState; 1142var modelState = testContext.ModelState; 1191var modelState = testContext.ModelState;
ComplexRecordIntegrationTest.cs (77)
48var modelState = testContext.ModelState; 98var modelState = testContext.ModelState; 150var modelState = testContext.ModelState; 204var modelState = testContext.ModelState; 253var modelState = testContext.ModelState; 302var modelState = testContext.ModelState; 350var modelState = testContext.ModelState; 402var modelState = testContext.ModelState; 454var modelState = testContext.ModelState; 507var modelState = testContext.ModelState; 560var modelState = testContext.ModelState; 614var modelState = testContext.ModelState; 664var modelState = testContext.ModelState; 721var modelState = testContext.ModelState; 775var modelState = testContext.ModelState; 830var modelState = testContext.ModelState; 885var modelState = testContext.ModelState; 932var modelState = testContext.ModelState; 978var modelState = testContext.ModelState; 1033var modelState = testContext.ModelState; 1088var modelState = testContext.ModelState; 1135var modelState = testContext.ModelState; 1181var modelState = testContext.ModelState; 1236var modelState = testContext.ModelState; 1291var modelState = testContext.ModelState; 1338var modelState = testContext.ModelState; 1397var modelState = testContext.ModelState; 1504var modelState = testContext.ModelState; 1611var modelState = testContext.ModelState; 1715var modelState = testContext.ModelState; 1770var modelState = testContext.ModelState; 1834var modelState = testContext.ModelState; 1920var modelState = testContext.ModelState; 1966var modelState = testContext.ModelState; 2022var modelState = testContext.ModelState; 2074var modelState = testContext.ModelState; 2128var modelState = testContext.ModelState; 2186var modelState = testContext.ModelState; 2242var modelState = testContext.ModelState; 2294var modelState = testContext.ModelState; 2342var modelState = testContext.ModelState; 2390var modelState = testContext.ModelState; 2442var modelState = testContext.ModelState; 2489var modelState = testContext.ModelState; 2539var modelState = testContext.ModelState; 2593var modelState = testContext.ModelState; 2652var modelState = testContext.ModelState; 2701var modelState = testContext.ModelState; 2757var modelState = testContext.ModelState; 2811var modelState = testContext.ModelState; 2915var modelState = testContext.ModelState; 2984var modelState = testContext.ModelState; 3056var modelState = testContext.ModelState; 3120var modelState = testContext.ModelState; 3172var modelState = testContext.ModelState; 3247var modelState = testContext.ModelState; 3318var modelState = testContext.ModelState; 3347var modelState = testContext.ModelState; 3388var modelState = testContext.ModelState; 3422var modelState = testContext.ModelState; 3454var modelState = testContext.ModelState; 3496var modelState = testContext.ModelState; 3539var modelState = testContext.ModelState; 3582var modelState = testContext.ModelState; 3633var modelState = testContext.ModelState; 3679var modelState = testContext.ModelState; 3731var modelState = testContext.ModelState; 3774var modelState = testContext.ModelState; 3819var modelState = testContext.ModelState; 3862var modelState = testContext.ModelState; 3906var modelState = testContext.ModelState; 3951var modelState = testContext.ModelState; 3995var modelState = testContext.ModelState; 4036var modelState = testContext.ModelState; 4079var modelState = testContext.ModelState; 4124var modelState = testContext.ModelState; 4169var modelState = testContext.ModelState;
ComplexTypeIntegrationTestBase.cs (61)
85var modelState = testContext.ModelState; 135var modelState = testContext.ModelState; 187var modelState = testContext.ModelState; 236var modelState = testContext.ModelState; 285var modelState = testContext.ModelState; 343var modelState = testContext.ModelState; 395var modelState = testContext.ModelState; 447var modelState = testContext.ModelState; 510var modelState = testContext.ModelState; 563var modelState = testContext.ModelState; 617var modelState = testContext.ModelState; 667var modelState = testContext.ModelState; 724var modelState = testContext.ModelState; 783var modelState = testContext.ModelState; 838var modelState = testContext.ModelState; 893var modelState = testContext.ModelState; 940var modelState = testContext.ModelState; 991var modelState = testContext.ModelState; 1046var modelState = testContext.ModelState; 1101var modelState = testContext.ModelState; 1148var modelState = testContext.ModelState; 1199var modelState = testContext.ModelState; 1254var modelState = testContext.ModelState; 1309var modelState = testContext.ModelState; 1356var modelState = testContext.ModelState; 1433var modelState = testContext.ModelState; 1540var modelState = testContext.ModelState; 1647var modelState = testContext.ModelState; 1756var modelState = testContext.ModelState; 1811var modelState = testContext.ModelState; 1866var modelState = testContext.ModelState; 1915var modelState = testContext.ModelState; 1974var modelState = testContext.ModelState; 2067var modelState = testContext.ModelState; 2120var modelState = testContext.ModelState; 2175var modelState = testContext.ModelState; 2236var modelState = testContext.ModelState; 2290var modelState = testContext.ModelState; 2348var modelState = testContext.ModelState; 2408var modelState = testContext.ModelState; 2460var modelState = testContext.ModelState; 2508var modelState = testContext.ModelState; 2560var modelState = testContext.ModelState; 2612var modelState = testContext.ModelState; 2659var modelState = testContext.ModelState; 2712var modelState = testContext.ModelState; 2766var modelState = testContext.ModelState; 2831var modelState = testContext.ModelState; 2880var modelState = testContext.ModelState; 2948var modelState = testContext.ModelState; 3002var modelState = testContext.ModelState; 3119var modelState = testContext.ModelState; 3192var modelState = testContext.ModelState; 3271var modelState = testContext.ModelState; 3342var modelState = testContext.ModelState; 3394var modelState = testContext.ModelState; 3476var modelState = testContext.ModelState; 3553var modelState = testContext.ModelState; 3592var modelState = testContext.ModelState; 3639var modelState = testContext.ModelState; 3691var modelState = testContext.ModelState;
DictionaryModelBinderIntegrationTest.cs (31)
33var modelState = testContext.ModelState; 73var modelState = testContext.ModelState; 111var modelState = testContext.ModelState; 164var modelState = testContext.ModelState; 201var modelState = testContext.ModelState; 340var modelState = testContext.ModelState; 377var modelState = testContext.ModelState; 413var modelState = testContext.ModelState; 449var modelState = testContext.ModelState; 518var modelState = testContext.ModelState; 550var modelState = testContext.ModelState; 588var modelState = testContext.ModelState; 623var modelState = testContext.ModelState; 658var modelState = testContext.ModelState; 716var modelState = testContext.ModelState; 755var modelState = testContext.ModelState; 795var modelState = testContext.ModelState; 835var modelState = testContext.ModelState; 871var modelState = testContext.ModelState; 919var modelState = testContext.ModelState; 947var modelState = testContext.ModelState; 981var modelState = testContext.ModelState; 1020var modelState = testContext.ModelState; 1059var modelState = testContext.ModelState; 1176var modelState = testContext.ModelState; 1219var modelState = testContext.ModelState; 1247var modelState = testContext.ModelState; 1301var modelState = testContext.ModelState; 1376var modelState = testContext.ModelState; 1412var modelState = testContext.ModelState; 1454var modelState = testContext.ModelState;
FormCollectionModelBindingIntegrationTest.cs (3)
46var modelState = testContext.ModelState; 96var modelState = testContext.ModelState; 136var modelState = testContext.ModelState;
FormFileModelBindingIntegrationTest.cs (22)
46var modelState = testContext.ModelState; 93var modelState = testContext.ModelState; 144var modelState = testContext.ModelState; 203var modelState = testContext.ModelState; 290var modelState = testContext.ModelState; 355var modelState = testContext.ModelState; 421var modelState = testContext.ModelState; 486var modelState = testContext.ModelState; 531var modelState = testContext.ModelState; 575var modelState = testContext.ModelState; 629var modelState = testContext.ModelState; 675var modelState = testContext.ModelState; 715var modelState = testContext.ModelState; 775var modelState = testContext.ModelState; 840var modelState = testContext.ModelState; 900var modelState = testContext.ModelState; 940var modelState = testContext.ModelState; 1002var modelState = testContext.ModelState; 1057var modelState = testContext.ModelState; 1108var modelState = testContext.ModelState; 1153var modelState = testContext.ModelState; 1217var modelState = testContext.ModelState;
GenericModelBinderIntegrationTest.cs (14)
37var modelState = testContext.ModelState; 75var modelState = testContext.ModelState; 114var modelState = testContext.ModelState; 196var modelState = testContext.ModelState; 239var modelState = testContext.ModelState; 274var modelState = testContext.ModelState; 319var modelState = testContext.ModelState; 364var modelState = testContext.ModelState; 399var modelState = testContext.ModelState; 443var modelState = testContext.ModelState; 487var modelState = testContext.ModelState; 523var modelState = testContext.ModelState; 571var modelState = testContext.ModelState; 619var modelState = testContext.ModelState;
HeaderModelBinderIntegrationTest.cs (7)
44var modelState = testContext.ModelState; 83var modelState = testContext.ModelState; 125var modelState = testContext.ModelState; 171var modelState = testContext.ModelState; 218var modelState = testContext.ModelState; 281var modelState = testContext.ModelState; 332var modelState = testContext.ModelState;
JQueryFormatModelBindingIntegrationTest.cs (2)
35var modelState = testContext.ModelState; 73var modelState = testContext.ModelState;
KeyValuePairModelBinderIntegrationTest.cs (13)
29var modelState = testContext.ModelState; 67var modelState = testContext.ModelState; 111var modelState = testContext.ModelState; 154var modelState = testContext.ModelState; 198var modelState = testContext.ModelState; 247var modelState = testContext.ModelState; 287var modelState = testContext.ModelState; 327var modelState = testContext.ModelState; 365var modelState = testContext.ModelState; 410var modelState = testContext.ModelState; 451var modelState = testContext.ModelState; 492var modelState = testContext.ModelState; 528var modelState = testContext.ModelState;
ModelPrefixSelectionIntegrationTest.cs (5)
44var modelState = testContext.ModelState; 93var modelState = testContext.ModelState; 132var modelState = testContext.ModelState; 181var modelState = testContext.ModelState; 227var modelState = testContext.ModelState;
NullableReferenceTypeIntegrationTest.cs (4)
33var modelState = testContext.ModelState; 81var modelState = testContext.ModelState; 120var modelState = testContext.ModelState; 172var modelState = testContext.ModelState;
ServicesModelBinderIntegrationTest.cs (10)
32var modelState = testContext.ModelState; 69var modelState = testContext.ModelState; 105var modelState = testContext.ModelState; 141var modelState = testContext.ModelState; 214var modelState = testContext.ModelState; 247var modelState = testContext.ModelState; 283var modelState = testContext.ModelState; 316var modelState = testContext.ModelState; 355var modelState = testContext.ModelState; 393var modelState = testContext.ModelState;
SimpleTypeModelBinderIntegrationTest.cs (17)
39var modelState = testContext.ModelState; 83var modelState = testContext.ModelState; 128var modelState = testContext.ModelState; 172var modelState = testContext.ModelState; 205var modelState = testContext.ModelState; 249var modelState = testContext.ModelState; 298var modelState = testContext.ModelState; 334var modelState = testContext.ModelState; 378var modelState = testContext.ModelState; 431var modelState = testContext.ModelState; 487var modelState = testContext.ModelState; 534var modelState = testContext.ModelState; 584var modelState = testContext.ModelState; 622var modelState = testContext.ModelState; 676var modelState = testContext.ModelState; 722var modelState = testContext.ModelState; 766var modelState = testContext.ModelState;
TryUpdateModelIntegrationTest.cs (29)
29var modelState = testContext.ModelState; 69var modelState = testContext.ModelState; 114var modelState = testContext.ModelState; 168var modelState = testContext.ModelState; 218var modelState = testContext.ModelState; 254var modelState = testContext.ModelState; 305var modelState = testContext.ModelState; 361var modelState = testContext.ModelState; 390var modelState = testContext.ModelState; 424var modelState = testContext.ModelState; 460var modelState = testContext.ModelState; 513var modelState = testContext.ModelState; 554var modelState = testContext.ModelState; 601var modelState = testContext.ModelState; 636var modelState = testContext.ModelState; 676var modelState = testContext.ModelState; 714var modelState = testContext.ModelState; 768var modelState = testContext.ModelState; 813var modelState = testContext.ModelState; 849var modelState = testContext.ModelState; 890var modelState = testContext.ModelState; 941var modelState = testContext.ModelState; 977var modelState = testContext.ModelState; 1025var modelState = testContext.ModelState; 1052var modelState = testContext.ModelState; 1106var modelState = testContext.ModelState; 1151var modelState = testContext.ModelState; 1178var modelState = testContext.ModelState; 1224var modelState = testContext.ModelState;
TryValidateModelIntegrationTest.cs (6)
20var modelState = testContext.ModelState; 50var modelState = testContext.ModelState; 81var modelState = testContext.ModelState; 137var modelState = testContext.ModelState; 158var modelState = testContext.ModelState; 224private Dictionary<string, string> GetModelStateErrors(ModelStateDictionary modelState)
ValidationIntegrationTests.cs (52)
103var modelState = testContext.ModelState; 145var modelState = testContext.ModelState; 179var modelState = testContext.ModelState; 216var modelState = testContext.ModelState; 267var modelState = testContext.ModelState; 305var modelState = testContext.ModelState; 358var modelState = testContext.ModelState; 397var modelState = testContext.ModelState; 450var modelState = testContext.ModelState; 489var modelState = testContext.ModelState; 537var modelState = testContext.ModelState; 575var modelState = testContext.ModelState; 636var modelState = testContext.ModelState; 660var modelState = testContext.ModelState; 695var modelState = testContext.ModelState; 732var modelState = testContext.ModelState; 783var modelState = testContext.ModelState; 820var modelState = testContext.ModelState; 860var modelState = testContext.ModelState; 918var modelState = testContext.ModelState; 955var modelState = testContext.ModelState; 1025var modelState = testContext.ModelState; 1062var modelState = testContext.ModelState; 1113var modelState = testContext.ModelState; 1150var modelState = testContext.ModelState; 1190var modelState = testContext.ModelState; 1230var modelState = testContext.ModelState; 1270var modelState = testContext.ModelState; 1361var modelState = testContext.ModelState; 1410var modelState = testContext.ModelState; 1449var modelState = testContext.ModelState; 1479var modelState = testContext.ModelState; 1512var modelState = testContext.ModelState; 1579var modelState = testContext.ModelState; 1619var modelState = testContext.ModelState; 1669var modelState = testContext.ModelState; 1746var modelState = testContext.ModelState; 1797var modelState = testContext.ModelState; 1841var modelState = testContext.ModelState; 1886var modelState = testContext.ModelState; 1933var modelState = testContext.ModelState; 1990var modelState = testContext.ModelState; 2039var modelState = testContext.ModelState; 2091var modelState = testContext.ModelState; 2161var modelState = testContext.ModelState; 2223var modelState = testContext.ModelState; 2270var modelState = testContext.ModelState; 2327var modelState = testContext.ModelState; 2381var modelState = testContext.ModelState; 2433var modelState = testContext.ModelState; 2485var modelState = testContext.ModelState; 2535var modelState = testContext.ModelState;
ValidationWithRecordIntegrationTests.cs (52)
95var modelState = testContext.ModelState; 137var modelState = testContext.ModelState; 167var modelState = testContext.ModelState; 204var modelState = testContext.ModelState; 248var modelState = testContext.ModelState; 286var modelState = testContext.ModelState; 330var modelState = testContext.ModelState; 369var modelState = testContext.ModelState; 415var modelState = testContext.ModelState; 454var modelState = testContext.ModelState; 496var modelState = testContext.ModelState; 534var modelState = testContext.ModelState; 578var modelState = testContext.ModelState; 615var modelState = testContext.ModelState; 659var modelState = testContext.ModelState; 696var modelState = testContext.ModelState; 736var modelState = testContext.ModelState; 787var modelState = testContext.ModelState; 824var modelState = testContext.ModelState; 887var modelState = testContext.ModelState; 924var modelState = testContext.ModelState; 971var modelState = testContext.ModelState; 1008var modelState = testContext.ModelState; 1048var modelState = testContext.ModelState; 1082var modelState = testContext.ModelState; 1122var modelState = testContext.ModelState; 1205var modelState = testContext.ModelState; 1254var modelState = testContext.ModelState; 1293var modelState = testContext.ModelState; 1323var modelState = testContext.ModelState; 1387var modelState = testContext.ModelState; 1427var modelState = testContext.ModelState; 1475var modelState = testContext.ModelState; 1549var modelState = testContext.ModelState; 1600var modelState = testContext.ModelState; 1644var modelState = testContext.ModelState; 1689var modelState = testContext.ModelState; 1736var modelState = testContext.ModelState; 1785var modelState = testContext.ModelState; 1830var modelState = testContext.ModelState; 1882var modelState = testContext.ModelState; 1952var modelState = testContext.ModelState; 2014var modelState = testContext.ModelState; 2061var modelState = testContext.ModelState; 2118var modelState = testContext.ModelState; 2169var modelState = testContext.ModelState; 2221var modelState = testContext.ModelState; 2271var modelState = testContext.ModelState; 2323var modelState = testContext.ModelState; 2362var modelState = testContext.ModelState; 2403var modelState = testContext.ModelState; 2438var modelState = testContext.ModelState;
Microsoft.AspNetCore.Mvc.NewtonsoftJson (9)
JsonPatchExtensions.cs (7)
15/// Applies JSON patch operations on object and logs errors in <see cref="ModelStateDictionary"/>. 19/// <param name="modelState">The <see cref="ModelStateDictionary"/> to add errors.</param> 23ModelStateDictionary modelState) where T : class 33/// Applies JSON patch operations on object and logs errors in <see cref="ModelStateDictionary"/>. 37/// <param name="modelState">The <see cref="ModelStateDictionary"/> to add errors.</param> 38/// <param name="prefix">The prefix to use when looking up values in <see cref="ModelStateDictionary"/>.</param> 42ModelStateDictionary modelState,
MvcNewtonsoftJsonOptions.cs (2)
23/// <see cref="NewtonsoftJsonInputFormatter"/> will be added to the <see cref="ModelStateDictionary"/>. If 30/// Error messages in the <see cref="ModelStateDictionary"/> are often communicated to clients, either in HTML
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (4)
JsonPatchExtensionsTest.cs (4)
20var modelState = new ModelStateDictionary(); 38var modelState = new ModelStateDictionary(); 55var modelState = new ModelStateDictionary(); 80var modelState = new ModelStateDictionary();
Microsoft.AspNetCore.Mvc.Razor (1)
RazorPagePropertyActivator.cs (1)
19private readonly Func<IModelMetadataProvider, ModelStateDictionary, ViewDataDictionary> _rootFactory;
Microsoft.AspNetCore.Mvc.RazorPages (10)
Infrastructure\PageActionInvokerCacheEntry.cs (2)
16Func<IModelMetadataProvider, ModelStateDictionary, ViewDataDictionary> viewDataFactory, 66public Func<IModelMetadataProvider, ModelStateDictionary, ViewDataDictionary> ViewDataFactory { get; }
PageBase.cs (4)
60/// Gets the <see cref="ModelStateDictionary"/>. 62public ModelStateDictionary ModelState => PageContext?.ModelState!; 141/// <param name="modelState">The <see cref="ModelStateDictionary" /> containing errors to be returned to the client.</param> 143public virtual BadRequestObjectResult BadRequest(ModelStateDictionary modelState)
PageModel.cs (4)
79/// Gets the <see cref="ModelStateDictionary"/>. 81public ModelStateDictionary ModelState => PageContext.ModelState; 473/// <param name="modelState">The <see cref="ModelStateDictionary" /> containing errors to be returned to the client.</param> 475public virtual BadRequestObjectResult BadRequest(ModelStateDictionary modelState)
Microsoft.AspNetCore.Mvc.RazorPages.Test (7)
ApplicationModels\TempDataFilterPageApplicationModelProviderTest.cs (2)
49var expected = $"TempData serializer '{typeof(DefaultTempDataSerializer)}' cannot serialize property '{type}.ModelState' of type '{typeof(ModelStateDictionary)}'." + 172public ModelStateDictionary ModelState { get; set; }
Infrastructure\PageBinderFactoryTest.cs (3)
565var modelState = page.PageContext.ModelState; 695var modelState = page.PageContext.ModelState; 746var modelState = pageContext.ModelState;
PageModelTest.cs (1)
1723var modelState = new ModelStateDictionary();
PageTest.cs (1)
23var modelState = new ModelStateDictionary();
Microsoft.AspNetCore.Mvc.TagHelpers.Test (16)
TestableHtmlGenerator.cs (1)
72ModelStateDictionary modelState)
ValidationSummaryTagHelperTest.cs (15)
22public static TheoryData<ModelStateDictionary> ProcessAsync_GeneratesExpectedOutput_WithNoErrorsData 26var emptyModelState = new ModelStateDictionary(); 28var modelState = new ModelStateDictionary(); 31return new TheoryData<ModelStateDictionary> 41public async Task ProcessAsync_GeneratesExpectedOutput_WithNoErrors(ModelStateDictionary modelState) 98ModelStateDictionary modelStateDictionary) 135public static TheoryData<string, ModelStateDictionary> ProcessAsync_SuppressesOutput_IfModelOnlyWithNoModelErrorData 139var emptyModelState = new ModelStateDictionary(); 141var modelState = new ModelStateDictionary(); 144var invalidModelState = new ModelStateDictionary(); 148return new TheoryData<string, ModelStateDictionary> 166ModelStateDictionary modelStateDictionary) 246var modelState = viewContext.ModelState; 316var modelState = viewContext.ModelState; 665private static void SetValidModelState(ModelStateDictionary modelState)
Microsoft.AspNetCore.Mvc.ViewFeatures (62)
IHtmlGenerator.cs (1)
518/// <see cref="ModelBinding.ModelStateDictionary"/> object. Message will always be visible but client-side
ModelStateDictionaryExtensions.cs (14)
11/// Extensions methods for <see cref="ModelStateDictionary"/>. 22/// <param name="modelState">The <see cref="ModelStateDictionary"/> instance this method extends.</param> 26this ModelStateDictionary modelState, 44/// This method allows adding the <paramref name="exception"/> to the current <see cref="ModelStateDictionary"/> 49/// <param name="modelState">The <see cref="ModelStateDictionary"/> instance this method extends.</param> 53this ModelStateDictionary modelState, 70/// <param name="modelState">The <see cref="ModelStateDictionary"/> instance this method extends.</param> 75this ModelStateDictionary modelState, 88/// Removes the specified <paramref name="expression"/> from the <see cref="ModelStateDictionary"/>. 91/// <param name="modelState">The <see cref="ModelStateDictionary"/> instance this method extends.</param> 98this ModelStateDictionary modelState, 109/// <see cref="ModelStateDictionary"/>. 112/// <param name="modelState">The <see cref="ModelStateDictionary"/> instance this method extends.</param> 115this ModelStateDictionary modelState,
Rendering\HtmlHelperValidationExtensions.cs (27)
15/// Returns the validation message if an error exists in the <see cref="ModelBinding.ModelStateDictionary"/> 26/// Method extracts an error string from the <see cref="ModelBinding.ModelStateDictionary"/> object. Message 39/// Returns the validation message if an error exists in the <see cref="ModelBinding.ModelStateDictionary"/> 46/// <see cref="ModelBinding.ModelStateDictionary"/> object. Message will always be visible but client-side 65/// Returns the validation message if an error exists in the <see cref="ModelBinding.ModelStateDictionary"/> 82/// Method extracts an error string from the <see cref="ModelBinding.ModelStateDictionary"/> object. Message 96/// Returns the validation message if an error exists in the <see cref="ModelBinding.ModelStateDictionary"/> 103/// <see cref="ModelBinding.ModelStateDictionary"/> object. Message will always be visible but client-side 127/// Returns the validation message if an error exists in the <see cref="ModelBinding.ModelStateDictionary"/> 134/// <see cref="ModelBinding.ModelStateDictionary"/> object. Message will always be visible but client-side 160/// Returns the validation message if an error exists in the <see cref="ModelBinding.ModelStateDictionary"/> 173/// Method extracts an error string from the <see cref="ModelBinding.ModelStateDictionary"/> object. Message 187/// Returns the validation message if an error exists in the <see cref="ModelBinding.ModelStateDictionary"/> 194/// <see cref="ModelBinding.ModelStateDictionary"/> object. Message will always be visible but client-side 216/// Returns the validation message if an error exists in the <see cref="ModelBinding.ModelStateDictionary"/> 223/// <see cref="ModelBinding.ModelStateDictionary"/> object. Message will always be visible but client-side 252/// Returns the validation message if an error exists in the <see cref="ModelBinding.ModelStateDictionary"/> 259/// <see cref="ModelBinding.ModelStateDictionary"/> object. Message will always be visible but client-side 287/// <see cref="ModelBinding.ModelStateDictionary"/> object. 307/// <see cref="ModelBinding.ModelStateDictionary"/> object. 330/// <see cref="ModelBinding.ModelStateDictionary"/> object. 353/// <see cref="ModelBinding.ModelStateDictionary"/> object. 379/// <see cref="ModelBinding.ModelStateDictionary"/> object. 408/// <see cref="ModelBinding.ModelStateDictionary"/> object. 439/// <see cref="ModelBinding.ModelStateDictionary"/> object. 474/// <see cref="ModelBinding.ModelStateDictionary"/> object. 507/// <see cref="ModelBinding.ModelStateDictionary"/> object.
Rendering\IHtmlHelper.cs (3)
664/// Returns the validation message if an error exists in the <see cref="ModelStateDictionary"/> object 670/// <see cref="ModelStateDictionary"/> object. Message will always be visible but client-side validation may 690/// <see cref="ModelStateDictionary"/> object.
Rendering\IHtmlHelperOfT.cs (2)
394/// Returns the validation message if an error exists in the <see cref="ModelBinding.ModelStateDictionary"/> 400/// <see cref="ModelBinding.ModelStateDictionary"/> object. Message will always be visible but client-side
ValidationHelpers.cs (1)
60var modelStateDictionary = viewData.ModelState;
ViewComponent.cs (2)
73/// Gets the <see cref="ModelStateDictionary"/>. 75public ModelStateDictionary ModelState => ViewData?.ModelState!;
ViewDataDictionary.cs (7)
34/// <param name="modelState"><see cref="ModelStateDictionary"/> instance for this scope.</param> 38ModelStateDictionary modelState) 104/// <param name="modelState"><see cref="ModelStateDictionary"/> instance for this scope.</param> 114ModelStateDictionary modelState, 244ModelStateDictionary modelState, 273/// Gets the <see cref="ModelStateDictionary"/>. 275public ModelStateDictionary ModelState { get; }
ViewDataDictionaryFactory.cs (4)
12public static Func<IModelMetadataProvider, ModelStateDictionary, ViewDataDictionary> CreateFactory(Type modelType) 17var constructor = type.GetConstructor(new[] { typeof(IModelMetadataProvider), typeof(ModelStateDictionary) }); 21var parameter2 = Expression.Parameter(typeof(ModelStateDictionary), "modelState"); 24Expression.Lambda<Func<IModelMetadataProvider, ModelStateDictionary, ViewDataDictionary>>(
ViewDataDictionaryOfT.cs (1)
26ModelStateDictionary modelState)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (32)
Filters\TempDataApplicationModelProviderTest.cs (2)
51var expected = $"TempData serializer '{typeof(DefaultTempDataSerializer)}' cannot serialize property '{type}.ModelState' of type '{typeof(ModelStateDictionary)}'." + 145public ModelStateDictionary ModelState { get; set; }
ModelStateDictionaryExtensionsTest.cs (21)
12var dictionary = new ModelStateDictionary(); 29var dictionary = new ModelStateDictionary(); 46var dictionary = new ModelStateDictionary(); 64var dictionary = new ModelStateDictionary(); 81var dictionary = new ModelStateDictionary(); 99var dictionary = new ModelStateDictionary(); 119var dictionary = new ModelStateDictionary(); 137var dictionary = new ModelStateDictionary(); 157var dictionary = new ModelStateDictionary(); 175var dictionary = new ModelStateDictionary(); 195var dictionary = new ModelStateDictionary(); 214var dictionary = new ModelStateDictionary(); 235var dictionary = new ModelStateDictionary(); 249var dictionary = new ModelStateDictionary(); 263var dictionary = new ModelStateDictionary(); 278var dictionary = new ModelStateDictionary(); 292var dictionary = new ModelStateDictionary(); 313var dictionary = new ModelStateDictionary(); 333var dictionary = new ModelStateDictionary(); 353var dictionary = new ModelStateDictionary(); 375var dictionary = new ModelStateDictionary();
Rendering\HtmlHelperSelectTest.cs (4)
411var modelState = new ModelStateDictionary(); 448var modelState = new ModelStateDictionary(); 814var modelState = new ModelStateDictionary(); 851var modelState = new ModelStateDictionary();
Rendering\HtmlHelperValidationSummaryTest.cs (2)
662private void AddMultipleErrors(ModelStateDictionary modelState) 687private void AddOrderedErrors(ModelStateDictionary modelState)
ViewDataDictionaryOfTModelTest.cs (1)
16var modelState = new ModelStateDictionary();
ViewDataDictionaryTest.cs (2)
34var modelState = new ModelStateDictionary(); 56var modelState = new ModelStateDictionary();
Mvc.Api.Analyzers.Test (2)
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsMissingStatusCodesAndTypes.Output.cs (1)
14[ProducesResponseType(typeof(ModelBinding.ModelStateDictionary), StatusCodes.Status400BadRequest)]
TestFiles\SymbolApiResponseMetadataProviderTest\GetErrorResponseType_ReturnsTypeDefinedAtAction.cs (1)
8[ProducesErrorResponseType(typeof(ModelStateDictionary))]
XmlFormattersWebSite (2)
Controllers\HomeController.cs (1)
28private List<string> GetModelStateErrorMessages(ModelStateDictionary modelStateDictionary)
Controllers\ValidationController.cs (1)
26private List<string> GetModelStateErrorMessages(ModelStateDictionary modelStateDictionary)