1 write to Model
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\ModelBindingResult.cs (1)
32Model = model;
617 references to Model
Microsoft.AspNetCore.Mvc.Abstractions (5)
ModelBinding\ModelBindingResult.cs (5)
43/// Gets a value indicating whether or not the <see cref="Model"/> value has been set. 69return HashCode.Combine(IsModelSet, Model); 77object.Equals(Model, other.Model); 85return $"Success '{Model}'";
Microsoft.AspNetCore.Mvc.Core (20)
Controllers\ControllerBinderDelegateProvider.cs (2)
84arguments[parameter.Name] = result.Model; 110PropertyValueSetter.SetValue(bindingInfo.ModelMetadata, controller, result.Model);
ModelBinding\Binders\CollectionModelBinder.cs (2)
292var boundValue = bindingContext.Result.Model; 366boundValue = result.Value.Model;
ModelBinding\Binders\ComplexObjectModelBinder.cs (3)
281parameterValues[i] = result.Model; 310parameterValues[i] = result.Model; 703var value = result.Model;
ModelBinding\Binders\ComplexTypeModelBinder.cs (1)
541var value = result.Model;
ModelBinding\Binders\DictionaryModelBinder.cs (4)
119Debug.Assert(result.Model != null); 120if (result.Model is IDictionary<TKey, TValue?> { Count: > 0 }) 157var model = (IDictionary<TKey, TValue?>)(result.Model ?? CreateEmptyCollection(bindingContext.ModelType)); 208model[convertedKey] = ModelBindingHelper.CastOrDefault<TValue>(valueResult.Model);
ModelBinding\Binders\KeyValuePairModelBinder.cs (2)
54ModelBindingHelper.CastOrDefault<TKey?>(keyResult.Model), 55ModelBindingHelper.CastOrDefault<TValue?>(valueResult.Model));
ModelBinding\ModelBindingHelper.cs (1)
277modelBindingResult.Model);
ModelBinding\ParameterBinder.cs (5)
164modelBindingResult.Model); 196modelBindingResult.Model, 226modelBindingResult.Model, 242modelBindingResult.Model == null || 248var modelType = modelBindingResult.Model.GetType();
Microsoft.AspNetCore.Mvc.Core.Test (151)
ModelBinding\Binders\ArrayModelBinderTest.cs (4)
38var array = Assert.IsType<int[]>(bindingContext.Result.Model); 81Assert.Empty(Assert.IsType<string[]>(bindingContext.Result.Model)); 115Assert.Empty(Assert.IsType<string[]>(bindingContext.Result.Model)); 211Assert.Same(model, bindingContext.Result.Model);
ModelBinding\Binders\BinderTypeModelBinderTest.cs (1)
47var person = (Person)bindingContext.Result.Model;
ModelBinding\Binders\BodyModelBinderTests.cs (12)
67Assert.Null(bindingContext.Result.Model); 92Assert.Null(bindingContext.Result.Model); 148Assert.Null(bindingContext.Result.Model); 215Assert.Null(bindingContext.Result.Model); 272Assert.Null(bindingContext.Result.Model); 315Assert.Null(bindingContext.Result.Model); 346Assert.Null(bindingContext.Result.Model); 386Assert.Null(bindingContext.Result.Model); 417Assert.Null(bindingContext.Result.Model); 497Assert.Null(bindingContext.Result.Model); 553Assert.Null(bindingContext.Result.Model); 586Assert.Same(canReadFormatter1, bindingContext.Result.Model);
ModelBinding\Binders\ByteArrayModelBinderTests.cs (3)
29Assert.Null(bindingContext.Result.Model); 53var bytes = Assert.IsType<byte[]>(bindingContext.Result.Model); 98Assert.Null(bindingContext.Result.Model);
ModelBinding\Binders\CancellationTokenModelBinderTests.cs (1)
23Assert.Equal(bindingContext.HttpContext.RequestAborted, bindingContext.Result.Model);
ModelBinding\Binders\CollectionModelBinderTest.cs (9)
86var list = Assert.IsAssignableFrom<IList<int>>(bindingContext.Result.Model); 117Assert.Same(list, bindingContext.Result.Model); 143var list = Assert.IsAssignableFrom<IList<int>>(bindingContext.Result.Model); 169Assert.Same(list, bindingContext.Result.Model); 190var model = Assert.IsType<List<int>>(bindingContext.Result.Model); 267Assert.Empty(Assert.IsType<List<string>>(bindingContext.Result.Model)); 301Assert.Empty(Assert.IsType<List<string>>(bindingContext.Result.Model)); 342Assert.Null(bindingContext.Result.Model); 375Assert.Same(list, bindingContext.Result.Model);
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (3)
314Assert.IsType<Person>(bindingContext.Result.Model); 358Assert.IsType<PersonWithNoProperties>(bindingContext.Result.Model); 402Assert.IsType<PersonWithAllPropertiesExcluded>(bindingContext.Result.Model);
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (4)
329var returnedPerson = Assert.IsType<Person>(bindingContext.Result.Model); 374Assert.IsType<Person>(bindingContext.Result.Model); 418Assert.IsType<PersonWithNoProperties>(bindingContext.Result.Model); 462Assert.IsType<PersonWithAllPropertiesExcluded>(bindingContext.Result.Model);
ModelBinding\Binders\DateTimeModelBinderTest.cs (6)
46Assert.Null(bindingContext.Result.Model); 69Assert.Null(bindingContext.Result.Model); 125Assert.Null(bindingContext.Result.Model); 149Assert.Null(bindingContext.Result.Model); 173var model = Assert.IsType<DateTime>(bindingContext.Result.Model); 196var model = Assert.IsType<DateTime>(bindingContext.Result.Model);
ModelBinding\Binders\DictionaryModelBinderTest.cs (16)
45var dictionary = Assert.IsAssignableFrom<IDictionary<int, string>>(bindingContext.Result.Model); 52Assert.DoesNotContain(bindingContext.Result.Model, bindingContext.ValidationState.Keys); 86Assert.Same(dictionary, bindingContext.Result.Model); 93Assert.DoesNotContain(bindingContext.Result.Model, bindingContext.ValidationState.Keys); 153var resultDictionary = Assert.IsAssignableFrom<IDictionary<string, string>>(bindingContext.Result.Model); 187var resultDictionary = Assert.IsAssignableFrom<IDictionary<string, string>>(bindingContext.Result.Model); 224var resultDictionary = Assert.IsAssignableFrom<IDictionary<string, string>>(bindingContext.Result.Model); 261Assert.Null(bindingContext.Result.Model); 311var resultDictionary = Assert.IsAssignableFrom<IDictionary<long, int>>(bindingContext.Result.Model); 361var resultDictionary = Assert.IsAssignableFrom<IDictionary<int, ModelWithProperties>>(bindingContext.Result.Model); 365Assert.Contains(bindingContext.Result.Model, bindingContext.ValidationState.Keys); 366var entry = bindingContext.ValidationState[bindingContext.Result.Model]; 408var resultDictionary = Assert.IsAssignableFrom<SortedDictionary<string, string>>(bindingContext.Result.Model); 452Assert.Empty(Assert.IsType<Dictionary<string, string>>(bindingContext.Result.Model)); 487Assert.Empty(Assert.IsType<Dictionary<string, string>>(bindingContext.Result.Model)); 536Assert.Null(bindingContext.Result.Model);
ModelBinding\Binders\EnumTypeModelBinderTest.cs (9)
24Assert.Null(bindingContext.Result.Model); 41Assert.Null(bindingContext.Result.Model); 63var boundModel = Assert.IsType<IntEnum>(bindingContext.Result.Model); 87var boundModel = Assert.IsType<FlagsEnum>(bindingContext.Result.Model); 111var boundModel = Assert.IsType<FlagsEnum>(bindingContext.Result.Model); 146Assert.Null(bindingContext.Result.Model); 173var boundModel = Assert.IsType<FlagsEnum>(bindingContext.Result.Model); 198var boundModel = Assert.IsType<FlagsEnum>(bindingContext.Result.Model); 229Assert.Null(bindingContext.Result.Model);
ModelBinding\Binders\FloatingPointTypeModelBinderTestOfT.cs (13)
68Assert.Null(bindingContext.Result.Model); 92Assert.Null(bindingContext.Result.Model); 116Assert.Null(bindingContext.Result.Model); 140Assert.Null(bindingContext.Result.Model); 164Assert.Null(bindingContext.Result.Model); 206Assert.Null(bindingContext.Result.Model); 230Assert.Null(bindingContext.Result.Model); 252Assert.Equal(Twelve, bindingContext.Result.Model); 274Assert.Equal(TwelvePointFive, bindingContext.Result.Model); 295Assert.Equal(TwelvePointFive, bindingContext.Result.Model); 316Assert.Equal(ThirtyTwoThousand, bindingContext.Result.Model); 337Assert.Equal(ThirtyTwoThousandPointOne, bindingContext.Result.Model); 358Assert.Equal(ThirtyTwoThousandPointOne, bindingContext.Result.Model);
ModelBinding\Binders\FormCollectionModelBinderTest.cs (2)
34var form = Assert.IsAssignableFrom<IFormCollection>(bindingContext.Result.Model); 53var form = Assert.IsAssignableFrom<IFormCollection>(bindingContext.Result.Model);
ModelBinding\Binders\FormFileModelBinderTest.cs (18)
31var entry = bindingContext.ValidationState[bindingContext.Result.Model]; 65var entry = bindingContext.ValidationState[bindingContext.Result.Model]; 105var entry = bindingContext.ValidationState[bindingContext.Result.Model]; 147var entry = bindingContext.ValidationState[bindingContext.Result.Model]; 181var entry = bindingContext.ValidationState[bindingContext.Result.Model]; 217var entry = bindingContext.ValidationState[bindingContext.Result.Model]; 238var entry = bindingContext.ValidationState[bindingContext.Result.Model]; 243var files = Assert.IsAssignableFrom<IList<IFormFile>>(bindingContext.Result.Model); 269Assert.IsAssignableFrom(destinationType, bindingContext.Result.Model); 270Assert.Equal(formFiles, bindingContext.Result.Model as IEnumerable<IFormFile>); 287var file = Assert.IsAssignableFrom<IFormFile>(bindingContext.Result.Model); 305Assert.Null(bindingContext.Result.Model); 325Assert.Null(bindingContext.Result.Model); 353var file = Assert.IsAssignableFrom<IFormFile>(bindingContext.Result.Model); 375Assert.Null(bindingContext.Result.Model); 395Assert.Null(bindingContext.Result.Model); 412Assert.NotNull(bindingContext.Result.Model); 429Assert.Null(bindingContext.Result.Model);
ModelBinding\Binders\HeaderModelBinderTests.cs (13)
35Assert.Equal(headerValue.Split(','), bindingContext.Result.Model); 57Assert.Equal(headerValue, bindingContext.Result.Model); 84Assert.IsAssignableFrom(destinationType, bindingContext.Result.Model); 85Assert.Equal(headerValue.Split(','), bindingContext.Result.Model as IEnumerable<string>); 103Assert.Equal(headerValue.Split(','), bindingContext.Result.Model); 154Assert.Equal(expectedModel, bindingContext.Result.Model); 171Assert.Null(bindingContext.Result.Model); 190Assert.Null(bindingContext.Result.Model); 213Assert.IsAssignableFrom(destinationType, bindingContext.Result.Model); 214Assert.Equal(headerValue.Split(','), bindingContext.Result.Model as IEnumerable<string>); 230Assert.NotNull(bindingContext.Result.Model); 247Assert.Equal("application/json,text/json", bindingContext.Result.Model); 271Assert.Equal("application/json,text/json", bindingContext.Result.Model);
ModelBinding\Binders\KeyValuePairModelBinderTest.cs (4)
29Assert.Null(bindingContext.Result.Model); 53Assert.Null(bindingContext.Result.Model); 101Assert.Equal(new KeyValuePair<int, string>(42, "some-value"), bindingContext.Result.Model); 166var model = Assert.IsType<KeyValuePair<string, string>>(bindingContext.Result.Model);
ModelBinding\Binders\ServicesModelBinderTest.cs (1)
27var entry = bindingContext.ValidationState[bindingContext.Result.Model];
ModelBinding\Binders\SimpleTypeModelBinderTest.cs (14)
33Assert.Same(value, bindingContext.Result.Model); 61Assert.Same(value, bindingContext.Result.Model); 127Assert.Null(bindingContext.Result.Model); 152Assert.Null(bindingContext.Result.Model); 214Assert.Null(bindingContext.Result.Model); 235Assert.Equal(12, bindingContext.Result.Model); 256Assert.Equal(12.5, bindingContext.Result.Model); 281Assert.Equal(42, bindingContext.Result.Model); 352Assert.Equal(12.5M, bindingContext.Result.Model); 373Assert.Null(bindingContext.Result.Model); 397var boundModel = Assert.IsType<IntEnum>(bindingContext.Result.Model); 418var boundModel = Assert.IsType<IntEnum>(bindingContext.Result.Model); 459var boundModel = Assert.IsType<IntEnum>(bindingContext.Result.Model); 482var boundModel = Assert.IsType<FlagsEnum>(bindingContext.Result.Model);
ModelBinding\Binders\TryParseTypeModelBinderTest.cs (12)
76Assert.Null(bindingContext.Result.Model); 101Assert.Null(bindingContext.Result.Model); 162Assert.Equal(12, bindingContext.Result.Model); 183Assert.Equal(12.5, bindingContext.Result.Model); 208Assert.Equal(42, bindingContext.Result.Model); 278Assert.Equal(12.5M, bindingContext.Result.Model); 299Assert.Null(bindingContext.Result.Model); 323var boundModel = Assert.IsType<IntEnum>(bindingContext.Result.Model); 344var boundModel = Assert.IsType<IntEnum>(bindingContext.Result.Model); 381var boundModel = Assert.IsType<IntEnum>(bindingContext.Result.Model); 431var boundModel = Assert.IsType<TestTryParseClass>(bindingContext.Result.Model); 480var boundModel = Assert.IsType<FlagsEnum>(bindingContext.Result.Model);
ModelBinding\ModelBindingResultTest.cs (2)
19Assert.Same(model, result.Model); 30Assert.Null(result.Model);
ModelBinding\ParameterBinderTest.cs (4)
345Assert.Same(model, result.Model); 400Assert.Same(model, result.Model); 455Assert.Same(model, result.Model); 509Assert.Same(model, result.Model);
Microsoft.AspNetCore.Mvc.IntegrationTests (441)
ActionParametersIntegrationTest.cs (19)
59Assert.NotNull(modelBindingResult.Model); 60var boundModel = Assert.IsType<Person3>(modelBindingResult.Model); 104var boundModel = Assert.IsType<Person6>(modelBindingResult.Model); 152Assert.NotNull(modelBindingResult.Model); 153var boundModel = Assert.IsType<Person4>(modelBindingResult.Model); 198Assert.NotNull(modelBindingResult.Model); 199var boundModel = Assert.IsType<Person5>(modelBindingResult.Model); 239Assert.NotNull(modelBindingResult.Model); 240var boundModel = Assert.IsType<Person3>(modelBindingResult.Model); 283var boundModel = Assert.IsType<Person6>(modelBindingResult.Model); 330Assert.NotNull(modelBindingResult.Model); 331var boundModel = Assert.IsType<Person4>(modelBindingResult.Model); 375Assert.NotNull(modelBindingResult.Model); 376var boundModel = Assert.IsType<Person5>(modelBindingResult.Model); 442var model = Assert.IsType<ActionParameter_DefaultValueConstructor>(result.Model); 623Assert.NotNull(modelBindingResult.Model); 624var boundModel = Assert.IsType<ClassWithNoDefaultConstructor>(modelBindingResult.Model); 694var model = Assert.IsType<ModelWithIValidatableObject>(modelBindingResult.Model); 742Assert.Equal(input.Value, Assert.IsType<int>(modelBindingResult.Model));
ArrayModelBinderIntegrationTest.cs (9)
37var model = Assert.IsType<int[]>(modelBindingResult.Model); 81var model = Assert.IsType<int[]>(modelBindingResult.Model); 121var model = Assert.IsType<int[]>(modelBindingResult.Model); 160Assert.Empty(Assert.IsType<int[]>(modelBindingResult.Model)); 196var model = Assert.IsType<Person[]>(modelBindingResult.Model); 241var model = Assert.IsType<Person[]>(modelBindingResult.Model); 282var model = Assert.IsType<Person[]>(modelBindingResult.Model); 322Assert.Empty(Assert.IsType<Person[]>(modelBindingResult.Model)); 362var model = Assert.IsType<PersonWithReadOnlyAndInitializedProperty>(modelBindingResult.Model);
BinderTypeBasedModelBinderIntegrationTest.cs (6)
41Assert.Null(modelBindingResult.Model); 112Assert.Equal("Success", modelBindingResult.Model); 176var address = Assert.IsType<Address>(modelBindingResult.Model); 227var person = Assert.IsType<Person3>(modelBindingResult.Model); 265var boundPerson = Assert.IsType<Person>(modelBindingResult.Model); 304var boundPerson = Assert.IsType<Person>(modelBindingResult.Model);
BindingSourceMetadataProviderIntegrationTest.cs (2)
53var boundPerson = Assert.IsType<CancellationTokenBundle>(modelBindingResult.Model); 106var boundPerson = Assert.IsType<FormFileBundle>(modelBindingResult.Model);
BindPropertyIntegrationTest.cs (3)
47Assert.Equal("Joey", Assert.IsType<Person>(result.Model).Name); 74Assert.Equal("Joey", Assert.IsType<Person>(result.Model).Name); 176Assert.Equal(input.Value, Assert.IsType<int>(result.Model));
BodyValidationIntegrationTests.cs (19)
47var boundPerson = Assert.IsType<ProductViewModel>(modelBindingResult.Model); 88var products = Assert.IsAssignableFrom<IEnumerable<ProductViewModel>>(result.Model); 128var boundPerson = Assert.IsType<ProductViewModel>(modelBindingResult.Model); 174var boundPerson = Assert.IsType<ProductViewModel>(modelBindingResult.Model); 213var boundPerson = Assert.IsType<ProductViewModel>(modelBindingResult.Model); 253var boundPerson = Assert.IsType<SoftwareViewModel>(modelBindingResult.Model); 292var boundPerson = Assert.IsType<SoftwareViewModel>(modelBindingResult.Model); 334var boundPerson = Assert.IsType<SoftwareViewModel>(modelBindingResult.Model); 386var boundPerson = Assert.IsType<Person>(modelBindingResult.Model); 427Assert.Null(modelBindingResult.Model); 474var boundPerson = Assert.IsType<Person4>(modelBindingResult.Model); 538var boundPerson = Assert.IsType<Person5>(modelBindingResult.Model); 580var boundPerson = Assert.IsType<Person5>(modelBindingResult.Model); 634Assert.IsType(modelType, modelBindingResult.Model); 679Assert.IsType<Person5>(modelBindingResult.Model); 730var boundPerson = Assert.IsType<Person2>(modelBindingResult.Model); 786Assert.IsType<Person3>(modelBindingResult.Model); 840var person = Assert.IsType<Person6>(modelBindingResult.Model); 886var address = Assert.IsType<Address6>(modelBindingResult.Model);
ByteArrayModelBinderIntegrationTest.cs (2)
53var boundPerson = Assert.IsType<Person>(modelBindingResult.Model); 135var model = Assert.IsType<byte[]>(modelBindingResult.Model);
CancellationTokenModelBinderIntegrationTest.cs (3)
44var boundPerson = Assert.IsType<Person>(modelBindingResult.Model); 80var boundPerson = Assert.IsType<Person>(modelBindingResult.Model); 119var token = Assert.IsType<CancellationToken>(modelBindingResult.Model);
CollectionModelBinderIntegrationTest.cs (21)
43var model = Assert.IsType<List<int>>(modelBindingResult.Model); 91var model = Assert.IsType<List<int>>(modelBindingResult.Model); 127var model = Assert.IsType<List<int>>(modelBindingResult.Model); 158Assert.Empty(Assert.IsType<List<int>>(modelBindingResult.Model)); 199var model = Assert.IsType<List<Person>>(modelBindingResult.Model); 239var model = Assert.IsType<List<Person>>(modelBindingResult.Model); 271Assert.Empty(Assert.IsType<List<Person>>(modelBindingResult.Model)); 310var model = Assert.IsType<List<Person2>>(modelBindingResult.Model); 369var model = Assert.IsType<List<Person2>>(modelBindingResult.Model); 420var model = Assert.IsType<List<Person2>>(modelBindingResult.Model); 472var model = Assert.IsType<List<int>>(modelBindingResult.Model); 515var model = Assert.IsType<List<Person2>>(modelBindingResult.Model); 565Assert.Empty(Assert.IsType<List<Person2>>(modelBindingResult.Model)); 615Assert.IsType<Person4>(modelBindingResult.Model); 672Assert.IsType<Person5>(modelBindingResult.Model); 712var model = Assert.IsType<List<Address5>>(modelBindingResult.Model); 956Assert.IsType(expectedType, modelBindingResult.Model); 958var model = modelBindingResult.Model as IEnumerable<string>; 1032var locations = Assert.IsType<List<SuccessfulModel>>(result.Model); 1155var model = Assert.IsType<Collection<string>>(result.Model); 1204var model = Assert.IsType<Collection<string>>(result.Model);
ComplexRecordIntegrationTest.cs (75)
66var model = Assert.IsType<Order1>(modelBindingResult.Model); 116var model = Assert.IsType<Order1>(modelBindingResult.Model); 168var model = Assert.IsType<Order1>(modelBindingResult.Model); 222var model = Assert.IsType<Order1>(modelBindingResult.Model); 271var model = Assert.IsType<Order1>(modelBindingResult.Model); 320var model = Assert.IsType<Order1>(modelBindingResult.Model); 368var model = Assert.IsType<Order3>(modelBindingResult.Model); 420var model = Assert.IsType<Order3>(modelBindingResult.Model); 472var model = Assert.IsType<Order3>(modelBindingResult.Model); 525var model = Assert.IsType<Order4>(modelBindingResult.Model); 578var model = Assert.IsType<Order4>(modelBindingResult.Model); 632var model = Assert.IsType<Order4>(modelBindingResult.Model); 682var model = Assert.IsType<Order4>(modelBindingResult.Model); 739var model = Assert.IsType<Order4>(modelBindingResult.Model); 793var model = Assert.IsType<Order5>(modelBindingResult.Model); 848var model = Assert.IsType<Order5>(modelBindingResult.Model); 903var model = Assert.IsType<Order5>(modelBindingResult.Model); 950var model = Assert.IsType<Order5>(modelBindingResult.Model); 996var model = Assert.IsType<Order6>(modelBindingResult.Model); 1051var model = Assert.IsType<Order6>(modelBindingResult.Model); 1106var model = Assert.IsType<Order6>(modelBindingResult.Model); 1153var model = Assert.IsType<Order6>(modelBindingResult.Model); 1199var model = Assert.IsType<Order7>(modelBindingResult.Model); 1254var model = Assert.IsType<Order7>(modelBindingResult.Model); 1309var model = Assert.IsType<Order7>(modelBindingResult.Model); 1356var model = Assert.IsType<Order7>(modelBindingResult.Model); 1415var model = Assert.IsType<Car1>(modelBindingResult.Model); 1522var model = Assert.IsType<Car2>(modelBindingResult.Model); 1629var model = Assert.IsType<Car3>(modelBindingResult.Model); 1733var model = Assert.IsType<Order8>(modelBindingResult.Model); 1788var model = Assert.IsType<Order8>(modelBindingResult.Model); 1852var model = Assert.IsType<Car4>(modelBindingResult.Model); 1938var model = Assert.IsType<Order9>(modelBindingResult.Model); 1984var model = Assert.IsType<Order10>(modelBindingResult.Model); 2040var model = Assert.IsType<Order10>(modelBindingResult.Model); 2092var model = Assert.IsType<Order11>(modelBindingResult.Model); 2146var model = Assert.IsType<Order11>(modelBindingResult.Model); 2204var model = Assert.IsType<Order11>(modelBindingResult.Model); 2260var model = Assert.IsType<Order12>(modelBindingResult.Model); 2312var model = Assert.IsType<Order12>(modelBindingResult.Model); 2360var model = Assert.IsType<Order12>(modelBindingResult.Model); 2408var model = Assert.IsType<Order13>(modelBindingResult.Model); 2460var model = Assert.IsType<Order13>(modelBindingResult.Model); 2507var model = Assert.IsType<Order13>(modelBindingResult.Model); 2557var model = Assert.IsType<Order14>(modelBindingResult.Model); 2611var model = Assert.IsType<Order14>(modelBindingResult.Model); 2669var person = Assert.IsType<Person12>(modelBindingResult.Model); 2718var address = Assert.IsType<Address12>(modelBindingResult.Model); 2774var person = Assert.IsType<Person13>(modelBindingResult.Model); 2828var address = Assert.IsType<Address13>(modelBindingResult.Model); 2887var model = Assert.IsType<Product>(modelBindingResult.Model); 2934var model = Assert.IsType<Photo>(modelBindingResult.Model); 3002var model = Assert.IsType<List<Person5>>(modelBindingResult.Model); 3074var model = Assert.IsType<TestModel>(modelBindingResult.Model); 3138var model = Assert.IsType<Person6>(modelBindingResult.Model); 3190var model = Assert.IsType<Person6>(modelBindingResult.Model); 3265var model = Assert.IsType<Person7>(modelBindingResult.Model); 3360var model = Assert.IsType<ThreeDeepModel>(result.Model); 3472var model = Assert.IsType<RecordTypeWithSettableProperty1>(modelBindingResult.Model); 3514var model = Assert.IsType<RecordTypeWithSettableProperty1>(modelBindingResult.Model); 3557var model = Assert.IsType<RecordTypeWithSettableProperty1>(modelBindingResult.Model); 3600var model = Assert.IsType<RecordTypeWithSettableProperty1>(modelBindingResult.Model); 3651var model = Assert.IsType<RecordTypeWithFilteredProperty1>(modelBindingResult.Model); 3697var model = Assert.IsType<RecordTypeWithFilteredProperty2>(modelBindingResult.Model); 3750var model = Assert.IsType<RecordTypesWithDifferentMetadataOnParameterAndProperty>(modelBindingResult.Model); 3792var model = Assert.IsType<RecordTypesWithDifferentMetadataOnParameterAndProperty>(modelBindingResult.Model); 3838var model = Assert.IsType<RecordTypeWithCollectionParameter>(modelBindingResult.Model); 3880var model = Assert.IsType<RecordTypeWithCollectionParameter>(modelBindingResult.Model); 3925var model = Assert.IsType<RecordTypesWithReadOnlyCollectionParameter>(modelBindingResult.Model); 3971var model = Assert.IsType<RecordTypesWithDefaultParameterValue>(modelBindingResult.Model); 4014var model = Assert.IsType<RecordTypesWithDefaultParameterValue>(modelBindingResult.Model); 4055var model = Assert.IsType<RecordTypesWithDefaultParameterValue>(modelBindingResult.Model); 4098var model = Assert.IsType<RecordTypesWithDefaultParameterValue>(modelBindingResult.Model); 4143var model = Assert.IsType<RecordTypeWithBindRequiredParameters>(modelBindingResult.Model); 4187var model = Assert.IsType<RecordTypeWithBindRequiredParameters>(modelBindingResult.Model);
ComplexTypeIntegrationTestBase.cs (59)
103var model = Assert.IsType<Order1>(modelBindingResult.Model); 153var model = Assert.IsType<Order1>(modelBindingResult.Model); 205var model = Assert.IsType<Order1>(modelBindingResult.Model); 254var model = Assert.IsType<Order1>(modelBindingResult.Model); 303var model = Assert.IsType<Order1>(modelBindingResult.Model); 361var model = Assert.IsType<Order3>(modelBindingResult.Model); 413var model = Assert.IsType<Order3>(modelBindingResult.Model); 465var model = Assert.IsType<Order3>(modelBindingResult.Model); 528var model = Assert.IsType<Order4>(modelBindingResult.Model); 581var model = Assert.IsType<Order4>(modelBindingResult.Model); 635var model = Assert.IsType<Order4>(modelBindingResult.Model); 685var model = Assert.IsType<Order4>(modelBindingResult.Model); 742var model = Assert.IsType<Order4>(modelBindingResult.Model); 801var model = Assert.IsType<Order5>(modelBindingResult.Model); 856var model = Assert.IsType<Order5>(modelBindingResult.Model); 911var model = Assert.IsType<Order5>(modelBindingResult.Model); 958var model = Assert.IsType<Order5>(modelBindingResult.Model); 1009var model = Assert.IsType<Order6>(modelBindingResult.Model); 1064var model = Assert.IsType<Order6>(modelBindingResult.Model); 1119var model = Assert.IsType<Order6>(modelBindingResult.Model); 1166var model = Assert.IsType<Order6>(modelBindingResult.Model); 1217var model = Assert.IsType<Order7>(modelBindingResult.Model); 1272var model = Assert.IsType<Order7>(modelBindingResult.Model); 1327var model = Assert.IsType<Order7>(modelBindingResult.Model); 1374var model = Assert.IsType<Order7>(modelBindingResult.Model); 1451var model = Assert.IsType<Car1>(modelBindingResult.Model); 1558var model = Assert.IsType<Car2>(modelBindingResult.Model); 1665var model = Assert.IsType<Car3>(modelBindingResult.Model); 1774var model = Assert.IsType<Order8>(modelBindingResult.Model); 1829var model = Assert.IsType<Order8>(modelBindingResult.Model); 1884var model = Assert.IsType<Order8>(modelBindingResult.Model); 1933var model = Assert.IsType<Order8>(modelBindingResult.Model); 1992var model = Assert.IsType<Car4>(modelBindingResult.Model); 2085var model = Assert.IsType<Order9>(modelBindingResult.Model); 2138var model = Assert.IsType<Order10>(modelBindingResult.Model); 2193var model = Assert.IsType<Order10>(modelBindingResult.Model); 2254var model = Assert.IsType<Order11>(modelBindingResult.Model); 2308var model = Assert.IsType<Order11>(modelBindingResult.Model); 2366var model = Assert.IsType<Order11>(modelBindingResult.Model); 2426var model = Assert.IsType<Order12>(modelBindingResult.Model); 2478var model = Assert.IsType<Order12>(modelBindingResult.Model); 2526var model = Assert.IsType<Order12>(modelBindingResult.Model); 2578var model = Assert.IsType<Order13>(modelBindingResult.Model); 2630var model = Assert.IsType<Order13>(modelBindingResult.Model); 2677var model = Assert.IsType<Order13>(modelBindingResult.Model); 2730var model = Assert.IsType<Order14>(modelBindingResult.Model); 2784var model = Assert.IsType<Order14>(modelBindingResult.Model); 2848var person = Assert.IsType<Person12>(modelBindingResult.Model); 2897var address = Assert.IsType<Address12>(modelBindingResult.Model); 2965var person = Assert.IsType<Person13>(modelBindingResult.Model); 3019var address = Assert.IsType<Address13>(modelBindingResult.Model); 3080var model = Assert.IsType<Product>(modelBindingResult.Model); 3138var model = Assert.IsType<Photo>(modelBindingResult.Model); 3210var model = Assert.IsType<List<Person5>>(modelBindingResult.Model); 3289var model = Assert.IsType<TestModel>(modelBindingResult.Model); 3360var model = Assert.IsType<Person6>(modelBindingResult.Model); 3412var model = Assert.IsType<Person6>(modelBindingResult.Model); 3494var model = Assert.IsType<Person7>(modelBindingResult.Model); 3605var model = Assert.IsType<ThreeDeepModel>(result.Model);
DictionaryModelBinderIntegrationTest.cs (30)
41var model = Assert.IsType<Dictionary<string, int>>(modelBindingResult.Model); 81var model = Assert.IsType<Dictionary<string, int>>(modelBindingResult.Model); 119var model = Assert.IsType<Dictionary<string, int>>(modelBindingResult.Model); 172var model = Assert.IsType<Dictionary<string, int>>(modelBindingResult.Model); 209var model = Assert.IsType<Dictionary<string, int>>(modelBindingResult.Model); 353var model = Assert.IsType<Dictionary<string, int>>(result.Model); 390var model = Assert.IsType<Dictionary<string, int>>(result.Model); 421var model = Assert.IsType<Dictionary<string, int>>(modelBindingResult.Model); 456Assert.Null(modelBindingResult.Model); 526var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model); 564var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model); 602var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model); 637var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model); 672var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model); 724var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model); 763var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model); 803var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model); 843var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model); 878Assert.Null(modelBindingResult.Model); 927var model = Assert.IsType<Dictionary<string, string[]>>(modelBindingResult.Model); 961var model = Assert.IsType<Dictionary<string, string[]>>(modelBindingResult.Model); 995var model = Assert.IsType<Dictionary<string, string[]>>(modelBindingResult.Model); 1034var model = Assert.IsType<Dictionary<string, string[]>>(modelBindingResult.Model); 1073var model = Assert.IsType<Dictionary<string, string[]>>(modelBindingResult.Model); 1184Assert.IsType(expectedType, modelBindingResult.Model); 1186var model = modelBindingResult.Model as IDictionary<string, string>; 1255var model = Assert.IsType<Dictionary<string, string>>(modelBindingResult.Model); 1309var model = Assert.IsType<Dictionary<string, NonNullPerson>>(modelBindingResult.Model); 1416var model = Assert.IsType<Dictionary<string, DayOfWeek>>(modelBindingResult.Model); 1462var model = Assert.IsType<Dictionary<string, NonNullPersonWithRequiredProperties>>(modelBindingResult.Model);
ExcludeBindingMetadataProviderIntegrationTest.cs (2)
52var boundPerson = Assert.IsType<TypesBundle>(modelBindingResult.Model); 111var boundPerson = Assert.IsType<TypesBundle>(modelBindingResult.Model);
FormCollectionModelBindingIntegrationTest.cs (3)
57var boundPerson = Assert.IsType<Person>(modelBindingResult.Model); 106var formCollection = Assert.IsAssignableFrom<IFormCollection>(modelBindingResult.Model); 144var collection = Assert.IsAssignableFrom<IFormCollection>(modelBindingResult.Model);
FormFileModelBindingIntegrationTest.cs (21)
57var boundPerson = Assert.IsType<Person>(modelBindingResult.Model); 104var boundPerson = Assert.IsType<Person>(modelBindingResult.Model); 155var boundPerson = Assert.IsType<Person>(modelBindingResult.Model); 214var group = Assert.IsType<Group>(modelBindingResult.Model); 301var fleet = Assert.IsType<Fleet>(modelBindingResult.Model); 366var fleet = Assert.IsType<Fleet>(modelBindingResult.Model); 432var group = Assert.IsType<Group>(modelBindingResult.Model); 495var boundContainer = Assert.IsType<ListContainer1>(result.Model); 540var boundContainer = Assert.IsType<ListContainer1>(result.Model); 584var boundContainer = Assert.IsType<ListContainer2>(result.Model); 639var file = Assert.IsType<FormFile>(modelBindingResult.Model); 726var car = Assert.IsType<Car1>(modelBindingResult.Model); 786var house = Assert.IsType<House>(modelBindingResult.Model); 851var house = Assert.IsType<House>(modelBindingResult.Model); 911var house = Assert.IsType<House>(modelBindingResult.Model); 951var house = Assert.IsType<House>(modelBindingResult.Model); 1013var car = Assert.IsType<Car1>(modelBindingResult.Model); 1068var container = Assert.IsType<MultiDimensionalFormFileContainer>(modelBindingResult.Model); 1117var container = Assert.IsType<MultiDimensionalFormFileContainer>(modelBindingResult.Model); 1164var level2 = Assert.IsType<MultiDimensionalFormFileContainerLevel2>(modelBindingResult.Model); 1228var container = Assert.IsType<DictionaryContainer>(modelBindingResult.Model);
GenericModelBinderIntegrationTest.cs (14)
45var model = Assert.IsType<List<IFormCollection>>(modelBindingResult.Model); 83var model = Assert.IsType<List<IFormCollection>>(modelBindingResult.Model); 122var model = Assert.IsType<List<IFormCollection>>(modelBindingResult.Model); 213var model = Assert.IsType<Address[]>(modelBindingResult.Model); 247var model = Assert.IsType<Address[]>(modelBindingResult.Model); 282var model = Assert.IsType<Dictionary<string, int>[]>(modelBindingResult.Model); 327var model = Assert.IsType<Dictionary<string, int>[]>(modelBindingResult.Model); 372var model = Assert.IsType<Dictionary<string, int>[]>(modelBindingResult.Model); 407var model = Assert.IsType<List<KeyValuePair<string, int>>>(modelBindingResult.Model); 451var model = Assert.IsType<List<KeyValuePair<string, int>>>(modelBindingResult.Model); 495var model = Assert.IsType<List<KeyValuePair<string, int>>>(modelBindingResult.Model); 531var model = Assert.IsType<Dictionary<string, List<int>>>(modelBindingResult.Model); 579var model = Assert.IsType<Dictionary<string, List<int>>>(modelBindingResult.Model); 627var model = Assert.IsType<Dictionary<string, List<int>>>(modelBindingResult.Model);
HeaderModelBinderIntegrationTest.cs (8)
55var boundPerson = Assert.IsType<Person>(modelBindingResult.Model); 94var boundPerson = Assert.IsType<Person>(modelBindingResult.Model); 136var boundPerson = Assert.IsType<Person>(modelBindingResult.Model); 180var boundContainer = Assert.IsType<ListContainer1>(result.Model); 227var boundContainer = Assert.IsType<ListContainer2>(result.Model); 292Assert.NotNull(modelBindingResult.Model); 293Assert.IsType(modelType, modelBindingResult.Model); 343var product = Assert.IsType<Product>(modelBindingResult.Model);
JQueryFormatModelBindingIntegrationTest.cs (2)
43var model = Assert.IsType<Customer>(modelBindingResult.Model); 81var model = Assert.IsType<Customer>(modelBindingResult.Model);
KeyValuePairModelBinderIntegrationTest.cs (9)
37var model = Assert.IsType<KeyValuePair<string, int>>(modelBindingResult.Model); 255var model = Assert.IsType<KeyValuePair<string, int>>(modelBindingResult.Model); 295var model = Assert.IsType<KeyValuePair<string, int>>(modelBindingResult.Model); 335Assert.Equal(new KeyValuePair<string, int>(), modelBindingResult.Model); 373var model = Assert.IsType<KeyValuePair<string, Person>>(modelBindingResult.Model); 418var model = Assert.IsType<KeyValuePair<string, Person>>(modelBindingResult.Model); 459var model = Assert.IsType<KeyValuePair<string, Person>>(modelBindingResult.Model); 500Assert.Equal(new KeyValuePair<string, Person>(), modelBindingResult.Model); 535var model = Assert.IsType<KeyValuePair<string, string[]>>(modelBindingResult.Model);
ModelPrefixSelectionIntegrationTest.cs (5)
52var model = Assert.IsType<Person1>(modelBindingResult.Model); 101var model = Assert.IsType<Person2>(modelBindingResult.Model); 140var model = Assert.IsType<Person3>(modelBindingResult.Model); 189var model = Assert.IsType<Person4>(modelBindingResult.Model); 235var model = Assert.IsType<Person5>(modelBindingResult.Model);
NullableReferenceTypeIntegrationTest.cs (4)
44var boundPerson = Assert.IsType<Person1>(modelBindingResult.Model); 92var boundPerson = Assert.IsType<Person2>(modelBindingResult.Model); 131var boundPerson = Assert.IsType<Person3>(modelBindingResult.Model); 187Assert.Null(modelBindingResult.Model);
ServicesModelBinderIntegrationTest.cs (10)
43var provider = Assert.IsAssignableFrom<ITypeActivatorCache>(modelBindingResult.Model); 79var provider = Assert.IsAssignableFrom<ITypeActivatorCache>(modelBindingResult.Model); 115var formatterArray = Assert.IsType<ITypeActivatorCache[]>(modelBindingResult.Model); 151var actionResultArray = Assert.IsType<IActionResult[]>(modelBindingResult.Model); 220var provider = Assert.IsAssignableFrom<ITypeActivatorCache>(modelBindingResult.Model); 257Assert.Null(modelBindingResult.Model); 289var provider = Assert.IsAssignableFrom<ITypeActivatorCache>(modelBindingResult.Model); 326Assert.Null(modelBindingResult.Model); 369var person = Assert.IsType<Person>(modelBindingResult.Model); 407Assert.IsAssignableFrom<ITypeActivatorCache>(modelBindingResult.Model);
SimpleTypeModelBinderIntegrationTest.cs (15)
50var boundPerson = Assert.IsType<Person>(modelBindingResult.Model); 94var boundPerson = Assert.IsType<Person>(modelBindingResult.Model); 139var model = Assert.IsType<string>(modelBindingResult.Model); 216var model = Assert.IsType<decimal>(modelBindingResult.Model); 260var model = Assert.IsType<DateTime>(modelBindingResult.Model); 309var model = Assert.IsType<DateTime>(modelBindingResult.Model); 345var model = Assert.IsType<string>(modelBindingResult.Model); 389Assert.Null(modelBindingResult.Model); 449Assert.Null(modelBindingResult.Model); 498Assert.Null(modelBindingResult.Model); 552Assert.Null(modelBindingResult.Model); 595Assert.Null(modelBindingResult.Model); 686var boundPerson = Assert.IsType<Person>(modelBindingResult.Model); 733var model = Assert.IsType<SampleModel>(modelBindingResult.Model); 777var model = Assert.IsType<SampleTryParsableModel>(modelBindingResult.Model);
ValidationIntegrationTests.cs (51)
187var model = Assert.IsType<Order1>(modelBindingResult.Model); 224var model = Assert.IsType<Order1>(modelBindingResult.Model); 275var model = Assert.IsType<Order2>(modelBindingResult.Model); 313var model = Assert.IsType<Order2>(modelBindingResult.Model); 366var model = Assert.IsType<Order3>(modelBindingResult.Model); 405var model = Assert.IsType<Order3>(modelBindingResult.Model); 458var model = Assert.IsType<Order4>(modelBindingResult.Model); 497var model = Assert.IsType<Order4>(modelBindingResult.Model); 545var model = Assert.IsType<List<Order5>>(modelBindingResult.Model); 583var model = Assert.IsType<List<Order5>>(modelBindingResult.Model); 703var model = Assert.IsType<Order6>(modelBindingResult.Model); 740var model = Assert.IsType<Order6>(modelBindingResult.Model); 791var model = Assert.IsType<Order7>(modelBindingResult.Model); 828var model = Assert.IsType<Order7>(modelBindingResult.Model); 868var model = Assert.IsType<Order7>(modelBindingResult.Model); 926var model = Assert.IsType<Order8>(modelBindingResult.Model); 963var model = Assert.IsType<Order8>(modelBindingResult.Model); 1033var model = Assert.IsType<Order9>(modelBindingResult.Model); 1070var model = Assert.IsType<Order9>(modelBindingResult.Model); 1121var model = Assert.IsType<List<Order10>>(modelBindingResult.Model); 1158var model = Assert.IsType<List<Order10>>(modelBindingResult.Model); 1198var model = Assert.IsType<List<Order10>>(modelBindingResult.Model); 1238var model = Assert.IsType<User>(modelBindingResult.Model); 1278var model = Assert.IsType<User>(modelBindingResult.Model); 1368var model = Assert.IsType<ValidateSomeProperties>(result.Model); 1417var model = Assert.IsType<ValidateSomeProperties>(result.Model); 1456var model = Assert.IsType<ValidateSomeProperties>(result.Model); 1486var model = Assert.IsType<ValidateSomeProperties>(result.Model); 1519Assert.IsType<ValidateNoProperties>(result.Model); 1592var model = Assert.IsType<ValidateSomePropertiesSometimes>(result.Model); 1632var model = Assert.IsType<ValidateSomePropertiesSometimes>(result.Model); 1682var model = Assert.IsType<ValidateSomePropertiesSometimesWithoutValidation>(result.Model); 1808Assert.NotNull(modelBindingResult.Model); 1809var message = Assert.IsType<JObject>(modelBindingResult.Model).GetValue("message").Value<string>(); 1851Assert.NotNull(modelBindingResult.Model); 1852Assert.IsType<CancellationToken>(modelBindingResult.Model); 1896Assert.NotNull(modelBindingResult.Model); 1897var message = Assert.IsType<Greeting>(modelBindingResult.Model).Message; 1943Assert.NotNull(modelBindingResult.Model); 1944var message = Assert.IsType<Greeting>(modelBindingResult.Model).Message; 1998var model = Assert.IsType<Order12>(modelBindingResult.Model); 2047var model = Assert.IsType<List<int>>(modelBindingResult.Model); 2099var model = Assert.IsType<List<int>>(modelBindingResult.Model); 2169var model = Assert.IsType<Collection<InvalidEvenIds>>(modelBindingResult.Model); 2231var model = Assert.IsType<Dictionary<string, int>>(modelBindingResult.Model); 2278var model = Assert.IsType<Dictionary<string, NeverValid>>(modelBindingResult.Model); 2335var model = Assert.IsType<Validation_TopLevelPropertyModel>(modelBindingResult.Model); 2389var model = Assert.IsType<Validation_TopLevelPropertyModel>(modelBindingResult.Model); 2441var model = Assert.IsType<RecursiveModel>(modelBindingResult.Model); 2493var model = Assert.IsType<RecursiveModel>(modelBindingResult.Model); 2543var model = Assert.IsType<ModelWithNonNullableReferenceTypeProperties>(modelBindingResult.Model);
ValidationWithRecordIntegrationTests.cs (49)
175var model = Assert.IsType<Order1>(modelBindingResult.Model); 212var model = Assert.IsType<Order1>(modelBindingResult.Model); 256var model = Assert.IsType<Order2>(modelBindingResult.Model); 294var model = Assert.IsType<Order2>(modelBindingResult.Model); 338var model = Assert.IsType<Order3>(modelBindingResult.Model); 377var model = Assert.IsType<Order3>(modelBindingResult.Model); 423var model = Assert.IsType<Order4>(modelBindingResult.Model); 462var model = Assert.IsType<Order4>(modelBindingResult.Model); 504var model = Assert.IsType<List<Order5>>(modelBindingResult.Model); 542var model = Assert.IsType<List<Order5>>(modelBindingResult.Model); 586var model = Assert.IsType<Order6>(modelBindingResult.Model); 623var model = Assert.IsType<Order6>(modelBindingResult.Model); 667var model = Assert.IsType<Order7>(modelBindingResult.Model); 704var model = Assert.IsType<Order7>(modelBindingResult.Model); 744var model = Assert.IsType<Order7>(modelBindingResult.Model); 795var model = Assert.IsType<Order8>(modelBindingResult.Model); 832var model = Assert.IsType<Order8>(modelBindingResult.Model); 895var model = Assert.IsType<Order9>(modelBindingResult.Model); 932var model = Assert.IsType<Order9>(modelBindingResult.Model); 979var model = Assert.IsType<List<Order10>>(modelBindingResult.Model); 1016var model = Assert.IsType<List<Order10>>(modelBindingResult.Model); 1056var model = Assert.IsType<List<Order10>>(modelBindingResult.Model); 1090var model = Assert.IsType<User>(modelBindingResult.Model); 1130var model = Assert.IsType<User>(modelBindingResult.Model); 1212var model = Assert.IsType<ValidateSomeProperties>(result.Model); 1261var model = Assert.IsType<ValidateSomeProperties>(result.Model); 1300var model = Assert.IsType<ValidateSomeProperties>(result.Model); 1330var model = Assert.IsType<ValidateSomeProperties>(result.Model); 1400var model = Assert.IsType<ValidateSomePropertiesSometimes>(result.Model); 1440var model = Assert.IsType<ValidateSomePropertiesSometimes>(result.Model); 1488var model = Assert.IsType<ValidateSomePropertiesSometimesWithoutValidation>(result.Model); 1611Assert.NotNull(modelBindingResult.Model); 1612var message = Assert.IsType<JObject>(modelBindingResult.Model).GetValue("message").Value<string>(); 1654Assert.NotNull(modelBindingResult.Model); 1655Assert.IsType<CancellationToken>(modelBindingResult.Model); 1699Assert.NotNull(modelBindingResult.Model); 1700var message = Assert.IsType<Greeting>(modelBindingResult.Model).Message; 1746Assert.NotNull(modelBindingResult.Model); 1747var message = Assert.IsType<Greeting>(modelBindingResult.Model).Message; 1793var model = Assert.IsType<Order12>(modelBindingResult.Model); 1838var model = Assert.IsType<List<int>>(modelBindingResult.Model); 1890var model = Assert.IsType<List<int>>(modelBindingResult.Model); 1960var model = Assert.IsType<Collection<InvalidEvenIds>>(modelBindingResult.Model); 2022var model = Assert.IsType<Dictionary<string, int>>(modelBindingResult.Model); 2069var model = Assert.IsType<Dictionary<string, NeverValid>>(modelBindingResult.Model); 2126var model = Assert.IsType<Validation_TopLevelPropertyModel>(modelBindingResult.Model); 2177var model = Assert.IsType<Validation_TopLevelPropertyModel>(modelBindingResult.Model); 2229var model = Assert.IsType<RecursiveModel>(modelBindingResult.Model); 2279var model = Assert.IsType<RecursiveModel>(modelBindingResult.Model);