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