16 writes to ValidationState
Microsoft.AspNetCore.Mvc.Abstractions (7)
ModelBinding\ModelStateDictionary.cs (7)
357
modelState.
ValidationState
= ModelValidationState.Invalid;
417
modelState.
ValidationState
= ModelValidationState.Valid;
437
modelState.
ValidationState
= ModelValidationState.Skipped;
523
entry.Value.
ValidationState
= ModelValidationState.Unvalidated;
681
modelState.
ValidationState
= ModelValidationState.Invalid;
862
ValidationState
= entry.ValidationState;
870
ValidationState
= ModelValidationState.Unvalidated;
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
ModelBinding\ModelStateDictionaryTest.cs (1)
271
entry.
ValidationState
= ModelValidationState.Skipped;
Microsoft.AspNetCore.Mvc.Core (6)
ModelBinding\ModelBindingHelper.cs (2)
409
kvp.Value.
ValidationState
= ModelValidationState.Unvalidated;
429
entry.
ValidationState
= ModelValidationState.Unvalidated;
ModelBinding\Validation\ValidationVisitor.cs (4)
184
entry.
ValidationState
= ModelValidationState.Valid;
254
entry.
ValidationState
= ModelValidationState.Valid;
350
item.Value.
ValidationState
= ModelValidationState.Valid;
468
entry.Value.
ValidationState
= ModelValidationState.Skipped;
Microsoft.AspNetCore.Mvc.Core.Test (2)
ModelBinding\Validation\DefaultObjectValidatorTests.cs (2)
1402
modelState["Property2"].
ValidationState
= ModelValidationState.Skipped;
1432
modelState["Property2"].
ValidationState
= ModelValidationState.Invalid;
341 references to ValidationState
Microsoft.AspNetCore.Mvc.Abstractions (9)
ModelBinding\ModelStateDictionary.cs (9)
394
return validationState.
ValidationState
;
401
/// Marks the <see cref="ModelStateEntry.
ValidationState
"/> for the entry with the specified
410
if (modelState.
ValidationState
== ModelValidationState.Invalid)
421
/// Marks the <see cref="ModelStateEntry.
ValidationState
"/> for the entry with the specified <paramref name="key"/>
430
if (modelState.
ValidationState
== ModelValidationState.Invalid)
632
if (node.
ValidationState
== ModelValidationState.Unvalidated)
638
if (node.
ValidationState
== ModelValidationState.Invalid)
640
validationState = node.
ValidationState
;
862
ValidationState = entry.
ValidationState
;
Microsoft.AspNetCore.Mvc.Abstractions.Test (35)
ModelBinding\ModelStateDictionaryTest.cs (35)
153
Assert.Equal(ModelValidationState.Skipped, source["key"].
ValidationState
);
167
Assert.Equal(ModelValidationState.Skipped, source["key"].
ValidationState
);
182
Assert.Equal(ModelValidationState.Skipped, source["key"].
ValidationState
);
212
Assert.Equal(ModelValidationState.Valid, source["key"].
ValidationState
);
226
Assert.Equal(ModelValidationState.Valid, source["key"].
ValidationState
);
241
Assert.Equal(ModelValidationState.Valid, source["key"].
ValidationState
);
282
Assert.Equal(entry.
ValidationState
, actual.
ValidationState
);
1297
Assert.Equal(ModelValidationState.Unvalidated, dictionary["Property1"].
ValidationState
);
1299
Assert.Equal(ModelValidationState.Unvalidated, dictionary["Property2"].
ValidationState
);
1301
Assert.Equal(ModelValidationState.Invalid, dictionary["Property3"].
ValidationState
);
1303
Assert.Equal(ModelValidationState.Unvalidated, dictionary["Property4"].
ValidationState
);
1324
Assert.Equal(ModelValidationState.Unvalidated, dictionary["Product"].
ValidationState
);
1326
Assert.Equal(ModelValidationState.Unvalidated, dictionary["Product.Detail1"].
ValidationState
);
1328
Assert.Equal(ModelValidationState.Unvalidated, dictionary["Product.Detail2[0]"].
ValidationState
);
1330
Assert.Equal(ModelValidationState.Unvalidated, dictionary["Product.Detail2[1]"].
ValidationState
);
1332
Assert.Equal(ModelValidationState.Unvalidated, dictionary["Product.Detail2[2]"].
ValidationState
);
1334
Assert.Equal(ModelValidationState.Unvalidated, dictionary["Product.Detail3"].
ValidationState
);
1336
Assert.Equal(ModelValidationState.Invalid, dictionary["ProductName"].
ValidationState
);
1353
Assert.Equal(ModelValidationState.Valid, dictionary["Product"].
ValidationState
);
1355
Assert.Equal(ModelValidationState.Unvalidated, dictionary["Product.Detail1"].
ValidationState
);
1357
Assert.Equal(ModelValidationState.Unvalidated, dictionary["Product.Detail1.Name"].
ValidationState
);
1358
Assert.Equal(ModelValidationState.Skipped, dictionary["Product.Detail1Name"].
ValidationState
);
1378
Assert.Equal(ModelValidationState.Unvalidated, dictionary["Property1"].
ValidationState
);
1380
Assert.Equal(ModelValidationState.Unvalidated, dictionary["Property2"].
ValidationState
);
1382
Assert.Equal(ModelValidationState.Unvalidated, dictionary["Property3"].
ValidationState
);
1384
Assert.Equal(ModelValidationState.Unvalidated, dictionary["Property4"].
ValidationState
);
1415
Assert.Equal(ModelValidationState.Valid, entry.Value.
ValidationState
);
1423
Assert.Equal(ModelValidationState.Skipped, entry.Value.
ValidationState
);
1431
Assert.Equal(ModelValidationState.Unvalidated, entry.Value.
ValidationState
);
1439
Assert.Equal(ModelValidationState.Invalid, entry.Value.
ValidationState
);
1537
Assert.Equal(ModelValidationState.Valid, value.
ValidationState
);
1544
Assert.Equal(ModelValidationState.Skipped, value.
ValidationState
);
1551
Assert.Equal(ModelValidationState.Unvalidated, value.
ValidationState
);
1558
Assert.Equal(ModelValidationState.Invalid, value.
ValidationState
);
Microsoft.AspNetCore.Mvc.Core (3)
ModelBinding\Validation\ValidationVisitor.cs (3)
182
if (entry != null && entry.
ValidationState
!= ModelValidationState.Invalid)
348
if (item.Value.
ValidationState
== ModelValidationState.Unvalidated)
466
if (entry.Value.
ValidationState
!= ModelValidationState.Invalid)
Microsoft.AspNetCore.Mvc.Core.Test (90)
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (1)
725
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (1)
869
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
ModelBinding\Binders\SimpleTypeModelBinderTest.cs (1)
328
Assert.Equal(ModelValidationState.Invalid, entry.Value.
ValidationState
);
ModelBinding\Binders\TryParseTypeModelBinderTest.cs (1)
254
Assert.Equal(ModelValidationState.Invalid, entry.Value.
ValidationState
);
ModelBinding\ModelBindingHelperTest.cs (14)
655
Assert.Equal(ModelValidationState.Unvalidated, dictionary["Name"].
ValidationState
);
657
Assert.Equal(ModelValidationState.Unvalidated, dictionary["Id"].
ValidationState
);
659
Assert.Equal(ModelValidationState.Unvalidated, dictionary["Category"].
ValidationState
);
662
Assert.Equal(ModelValidationState.Invalid, dictionary["Unrelated"].
ValidationState
);
684
Assert.Equal(ModelValidationState.Unvalidated, dictionary[string.Empty].
ValidationState
);
687
Assert.Equal(ModelValidationState.Invalid, dictionary["Unrelated"].
ValidationState
);
715
Assert.Equal(ModelValidationState.Unvalidated, dictionary["[0].Name"].
ValidationState
);
717
Assert.Equal(ModelValidationState.Unvalidated, dictionary["[0].Id"].
ValidationState
);
719
Assert.Equal(ModelValidationState.Unvalidated, dictionary["[0].Category"].
ValidationState
);
721
Assert.Equal(ModelValidationState.Unvalidated, dictionary["[1].Name"].
ValidationState
);
723
Assert.Equal(ModelValidationState.Unvalidated, dictionary["[1].Id"].
ValidationState
);
725
Assert.Equal(ModelValidationState.Unvalidated, dictionary["[1].Category"].
ValidationState
);
728
Assert.Equal(ModelValidationState.Invalid, dictionary["Unrelated"].
ValidationState
);
764
Assert.Equal(ModelValidationState.Unvalidated, dictionary[entry].
ValidationState
);
ModelBinding\ParameterBinderTest.cs (4)
575
Assert.Equal(ModelValidationState.Invalid, kvp.Value.
ValidationState
);
636
Assert.Equal(ModelValidationState.Invalid, kvp.Value.
ValidationState
);
643
Assert.Equal(ModelValidationState.Invalid, kvp.Value.
ValidationState
);
701
Assert.Equal(ModelValidationState.Invalid, keyValuePair.Value.
ValidationState
);
ModelBinding\Validation\DefaultObjectValidatorTests.cs (68)
43
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
70
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
99
Assert.Equal(ModelValidationState.Skipped, entry.
ValidationState
);
126
Assert.Equal(ModelValidationState.Skipped, entry.
ValidationState
);
176
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
180
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
208
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
212
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
238
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
243
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
281
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
285
Assert.Equal(ModelValidationState.Skipped, entry.
ValidationState
);
313
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
345
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
377
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
380
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
385
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
390
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
490
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
495
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
500
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
505
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
539
Assert.Equal(ModelValidationState.Unvalidated, entry.Value.
ValidationState
);
545
Assert.Equal(ModelValidationState.Invalid, entry.Value.
ValidationState
);
554
Assert.Equal(ModelValidationState.Invalid, entry.Value.
ValidationState
);
561
Assert.Equal(ModelValidationState.Invalid, entry.Value.
ValidationState
);
568
Assert.Equal(ModelValidationState.Invalid, entry.Value.
ValidationState
);
636
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
667
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
671
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
703
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
707
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
743
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
773
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
777
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
804
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
809
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
814
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
819
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
847
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
852
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
857
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
862
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
929
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
933
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
937
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
1005
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
1009
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
1013
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
1017
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
1053
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
1057
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
1061
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
1066
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
1071
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
1076
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
1152
Assert.Equal(ModelValidationState.Skipped, entry.
ValidationState
);
1182
Assert.Equal(ModelValidationState.Skipped, entry.
ValidationState
);
1215
Assert.Equal(ModelValidationState.Valid, entry.Value.
ValidationState
);
1248
Assert.Equal(ModelValidationState.Invalid, kvp.Value.
ValidationState
);
1255
Assert.Equal(ModelValidationState.Invalid, kvp.Value.
ValidationState
);
1356
Assert.Equal(expectedParentValidationState, modelState.Root.
ValidationState
);
1382
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
1385
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
1412
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
1415
Assert.Equal(ModelValidationState.Skipped, entry.
ValidationState
);
1442
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
1445
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
Microsoft.AspNetCore.Mvc.IntegrationTests (204)
ActionParametersIntegrationTest.cs (6)
72
Assert.Equal(ModelValidationState.Valid, modelState[key].
ValidationState
);
116
Assert.Equal(ModelValidationState.Valid, state.
ValidationState
);
166
Assert.Equal(ModelValidationState.Valid, modelState[key].
ValidationState
);
252
Assert.Equal(ModelValidationState.Valid, modelState[key].
ValidationState
);
296
Assert.Equal(ModelValidationState.Valid, state.
ValidationState
);
343
Assert.Equal(ModelValidationState.Valid, modelState[key].
ValidationState
);
BinderTypeBasedModelBinderIntegrationTest.cs (5)
118
Assert.Equal(ModelValidationState.Valid, modelState[key].
ValidationState
);
185
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
237
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
273
Assert.Equal(ModelValidationState.Valid, modelState[key].
ValidationState
);
312
Assert.Equal(ModelValidationState.Valid, modelState[key].
ValidationState
);
BodyValidationIntegrationTests.cs (2)
640
Assert.Equal(ModelValidationState.Invalid, street.
ValidationState
);
737
Assert.Equal(ModelValidationState.Invalid, street.
ValidationState
);
ByteArrayModelBinderIntegrationTest.cs (1)
64
Assert.Equal(ModelValidationState.Valid, entry.Value.
ValidationState
);
CollectionModelBinderIntegrationTest.cs (14)
330
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
336
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
389
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
393
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
440
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
444
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
483
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
488
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
535
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
539
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
1166
Assert.Equal(ModelValidationState.Valid, kvp.Value.
ValidationState
);
1171
Assert.Equal(ModelValidationState.Valid, kvp.Value.
ValidationState
);
1215
Assert.Equal(ModelValidationState.Valid, kvp.Value.
ValidationState
);
1220
Assert.Equal(ModelValidationState.Valid, kvp.Value.
ValidationState
);
ComplexRecordIntegrationTest.cs (6)
2679
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
2727
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
2787
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
2840
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
3090
Assert.Equal(ModelValidationState.Valid, kvp.Value.
ValidationState
);
3098
Assert.Equal(ModelValidationState.Valid, kvp.Value.
ValidationState
);
ComplexTypeIntegrationTestBase.cs (6)
2858
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
2906
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
2978
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
3031
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
3305
Assert.Equal(ModelValidationState.Valid, kvp.Value.
ValidationState
);
3313
Assert.Equal(ModelValidationState.Valid, kvp.Value.
ValidationState
);
DictionaryModelBinderIntegrationTest.cs (14)
130
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
135
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
810
Assert.NotEqual(ModelValidationState.Unvalidated, kvp.Value.
ValidationState
);
811
Assert.NotEqual(ModelValidationState.Skipped, kvp.Value.
ValidationState
);
814
var entry = Assert.Single(modelState, kvp => kvp.Value.
ValidationState
== ModelValidationState.Invalid);
1269
Assert.Equal(ModelValidationState.Valid, kvp.Value.
ValidationState
);
1332
Assert.Equal(ModelValidationState.Invalid, kvp.Value.
ValidationState
);
1338
Assert.Equal(ModelValidationState.Valid, kvp.Value.
ValidationState
);
1343
Assert.Equal(ModelValidationState.Valid, kvp.Value.
ValidationState
);
1348
Assert.Equal(ModelValidationState.Invalid, kvp.Value.
ValidationState
);
1485
Assert.Equal(ModelValidationState.Invalid, kvp.Value.
ValidationState
);
1491
Assert.Equal(ModelValidationState.Valid, kvp.Value.
ValidationState
);
1496
Assert.Equal(ModelValidationState.Valid, kvp.Value.
ValidationState
);
1501
Assert.Equal(ModelValidationState.Invalid, kvp.Value.
ValidationState
);
FormCollectionModelBindingIntegrationTest.cs (1)
70
Assert.Equal(ModelValidationState.Valid, entry.Value.
ValidationState
);
FormFileModelBindingIntegrationTest.cs (14)
71
Assert.Equal(ModelValidationState.Valid, modelState[key].
ValidationState
);
121
Assert.Equal(ModelValidationState.Valid, value.
ValidationState
);
172
Assert.Equal(ModelValidationState.Valid, value.
ValidationState
);
235
Assert.Equal(ModelValidationState.Valid, value.
ValidationState
);
243
Assert.Equal(ModelValidationState.Valid, value.
ValidationState
);
325
Assert.Equal(ModelValidationState.Valid, value.
ValidationState
);
331
Assert.Equal(ModelValidationState.Valid, value.
ValidationState
);
391
Assert.Equal(ModelValidationState.Valid, value.
ValidationState
);
397
Assert.Equal(ModelValidationState.Valid, value.
ValidationState
);
453
Assert.Equal(ModelValidationState.Valid, value.
ValidationState
);
461
Assert.Equal(ModelValidationState.Valid, value.
ValidationState
);
512
Assert.Equal(ModelValidationState.Valid, modelStateEntry.
ValidationState
);
601
Assert.Equal(ModelValidationState.Valid, modelStateEntry.
ValidationState
);
650
Assert.Equal(ModelValidationState.Valid, entry.Value.
ValidationState
);
HeaderModelBinderIntegrationTest.cs (13)
104
Assert.Equal(ModelValidationState.Valid, entry.Value.
ValidationState
);
146
Assert.Equal(ModelValidationState.Valid, entry.Value.
ValidationState
);
193
Assert.Equal(ModelValidationState.Valid, modelStateEntry.
ValidationState
);
240
Assert.Equal(ModelValidationState.Valid, modelStateEntry.
ValidationState
);
300
Assert.Equal(ModelValidationState.Valid, entry.Value.
ValidationState
);
366
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
375
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
384
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
393
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
402
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
411
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
420
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
429
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
NullableReferenceTypeIntegrationTest.cs (3)
54
Assert.Equal(ModelValidationState.Invalid, kvp.Value.
ValidationState
);
141
Assert.Equal(ModelValidationState.Invalid, kvp.Value.
ValidationState
);
196
Assert.Equal(ModelValidationState.Invalid, kvp.Value.
ValidationState
);
SimpleTypeModelBinderIntegrationTest.cs (11)
63
Assert.Equal(ModelValidationState.Valid, modelState[key].
ValidationState
);
107
Assert.Equal(ModelValidationState.Valid, modelState[key].
ValidationState
);
151
Assert.Equal(ModelValidationState.Valid, modelState[key].
ValidationState
);
228
Assert.Equal(ModelValidationState.Valid, modelState[key].
ValidationState
);
272
Assert.Equal(ModelValidationState.Valid, modelState[key].
ValidationState
);
357
Assert.Equal(ModelValidationState.Valid, modelState[key].
ValidationState
);
402
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
462
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
700
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
746
Assert.Equal(ModelValidationState.Valid, modelState[key].
ValidationState
);
790
Assert.Equal(ModelValidationState.Valid, modelState[key].
ValidationState
);
TryUpdateModelIntegrationTest.cs (24)
57
Assert.Equal(ModelValidationState.Valid, state.
ValidationState
);
91
Assert.Equal(ModelValidationState.Valid, state.
ValidationState
);
201
Assert.Equal(ModelValidationState.Valid, state.
ValidationState
);
242
Assert.Equal(ModelValidationState.Valid, state.
ValidationState
);
283
Assert.Equal(ModelValidationState.Valid, state.
ValidationState
);
344
Assert.Equal(ModelValidationState.Valid, state.
ValidationState
);
376
Assert.Equal(ModelValidationState.Valid, state.
ValidationState
);
405
Assert.Equal(ModelValidationState.Valid, state.
ValidationState
);
448
Assert.Equal(ModelValidationState.Valid, state.
ValidationState
);
496
Assert.Equal(ModelValidationState.Valid, state.
ValidationState
);
664
Assert.Equal(ModelValidationState.Valid, state.
ValidationState
);
698
Assert.Equal(ModelValidationState.Valid, state.
ValidationState
);
801
Assert.Equal(ModelValidationState.Valid, state.
ValidationState
);
837
Assert.Equal(ModelValidationState.Valid, state.
ValidationState
);
878
Assert.Equal(ModelValidationState.Valid, state.
ValidationState
);
929
Assert.Equal(ModelValidationState.Valid, state.
ValidationState
);
965
Assert.Equal(ModelValidationState.Valid, state.
ValidationState
);
1013
Assert.Equal(ModelValidationState.Valid, state.
ValidationState
);
1081
Assert.Equal(ModelValidationState.Valid, modelStateEntry.
ValidationState
);
1134
Assert.Equal(ModelValidationState.Valid, state.
ValidationState
);
1205
Assert.Equal(ModelValidationState.Valid, state.
ValidationState
);
1212
Assert.Equal(ModelValidationState.Valid, state.
ValidationState
);
1260
Assert.Equal(ModelValidationState.Valid, state.
ValidationState
);
1269
Assert.Equal(ModelValidationState.Valid, state.
ValidationState
);
ValidationIntegrationTests.cs (42)
234
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
323
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
417
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
507
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
595
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
670
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
977
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
1084
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
1378
Assert.Equal(ModelValidationState.Invalid, state.Value.
ValidationState
);
1391
Assert.Equal(ModelValidationState.Valid, state.Value.
ValidationState
);
1426
Assert.Equal(ModelValidationState.Invalid, state.
ValidationState
);
1464
Assert.Equal(ModelValidationState.Skipped, state.
ValidationState
);
1526
Assert.Equal(ModelValidationState.Skipped, state.
ValidationState
);
1601
Assert.Equal(ModelValidationState.Skipped, kvp.Value.
ValidationState
);
1643
Assert.Equal(ModelValidationState.Valid, state.Value.
ValidationState
);
1691
Assert.Equal(ModelValidationState.Valid, kvp.Value.
ValidationState
);
1758
Assert.Equal(ModelValidationState.Skipped, entry.
ValidationState
);
1763
Assert.Equal(ModelValidationState.Skipped, entry.
ValidationState
);
1768
Assert.Equal(ModelValidationState.Skipped, entry.
ValidationState
);
1816
Assert.Equal(ModelValidationState.Skipped, entry.Value.
ValidationState
);
1858
Assert.Equal(ModelValidationState.Unvalidated, entry.Value.
ValidationState
);
1904
Assert.Equal(ModelValidationState.Unvalidated, entry.Value.
ValidationState
);
1951
Assert.Equal(ModelValidationState.Invalid, entry.Value.
ValidationState
);
1954
Assert.Equal(ModelValidationState.Unvalidated, entry.Value.
ValidationState
);
2058
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
2063
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
2108
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
2113
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
2118
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
2181
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
2184
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
2189
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
2246
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
2251
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
2293
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
2298
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
2301
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
2346
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
2400
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
2403
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
2450
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
2502
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
ValidationWithRecordIntegrationTests.cs (42)
222
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
304
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
389
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
472
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
554
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
846
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
946
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
1222
Assert.Equal(ModelValidationState.Invalid, state.Value.
ValidationState
);
1235
Assert.Equal(ModelValidationState.Valid, state.Value.
ValidationState
);
1270
Assert.Equal(ModelValidationState.Invalid, state.
ValidationState
);
1308
Assert.Equal(ModelValidationState.Skipped, state.
ValidationState
);
1409
Assert.Equal(ModelValidationState.Skipped, kvp.Value.
ValidationState
);
1451
Assert.Equal(ModelValidationState.Valid, state.Value.
ValidationState
);
1497
Assert.Equal(ModelValidationState.Valid, kvp.Value.
ValidationState
);
1561
Assert.Equal(ModelValidationState.Skipped, entry.
ValidationState
);
1566
Assert.Equal(ModelValidationState.Skipped, entry.
ValidationState
);
1571
Assert.Equal(ModelValidationState.Skipped, entry.
ValidationState
);
1619
Assert.Equal(ModelValidationState.Skipped, entry.Value.
ValidationState
);
1661
Assert.Equal(ModelValidationState.Unvalidated, entry.Value.
ValidationState
);
1707
Assert.Equal(ModelValidationState.Unvalidated, entry.Value.
ValidationState
);
1754
Assert.Equal(ModelValidationState.Invalid, entry.Value.
ValidationState
);
1757
Assert.Equal(ModelValidationState.Unvalidated, entry.Value.
ValidationState
);
1849
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
1854
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
1899
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
1904
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
1909
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
1972
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
1975
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
1980
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
2037
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
2042
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
2084
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
2089
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
2092
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
2137
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
2188
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
2191
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);
2238
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
2288
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
2450
Assert.Equal(ModelValidationState.Valid, entry.
ValidationState
);
2453
Assert.Equal(ModelValidationState.Invalid, entry.
ValidationState
);