60 references to Unvalidated
Microsoft.AspNetCore.Mvc.Abstractions (12)
ModelBinding\ModelStateDictionary.cs (9)
370
/// <returns>Returns <see cref="ModelValidationState.
Unvalidated
"/> if no entries are found for the specified
378
return GetValidity(item, currentDepth: 0) ?? ModelValidationState.
Unvalidated
;
385
/// <returns>Returns <see cref="ModelValidationState.
Unvalidated
"/> if no entry is found for the specified
397
return ModelValidationState.
Unvalidated
;
523
entry.Value.ValidationState = ModelValidationState.
Unvalidated
;
632
if (node.ValidationState == ModelValidationState.
Unvalidated
)
635
return ModelValidationState.
Unvalidated
;
652
if (entryState == ModelValidationState.
Unvalidated
)
870
ValidationState = ModelValidationState.
Unvalidated
;
ModelBinding\ModelValidationState.cs (3)
20
/// For aggregate validity, the validation of a <see cref="ModelStateEntry"/> is <see cref="
Unvalidated
"/>
21
/// if either the entry or one of thedescendants is <see cref="
Unvalidated
"/>.
30
/// if either the entry or one of the descendants is <see cref="Invalid"/> and none are <see cref="
Unvalidated
"/>.
Microsoft.AspNetCore.Mvc.Abstractions.Test (23)
ModelBinding\ModelStateDictionaryTest.cs (23)
367
Assert.Equal(ModelValidationState.
Unvalidated
, validationState);
381
Assert.Equal(ModelValidationState.
Unvalidated
, validationState);
545
Assert.Equal(ModelValidationState.
Unvalidated
, validationState);
675
Assert.Equal(ModelValidationState.
Unvalidated
, validationState);
691
Assert.Equal(ModelValidationState.
Unvalidated
, validationState);
1297
Assert.Equal(ModelValidationState.
Unvalidated
, dictionary["Property1"].ValidationState);
1299
Assert.Equal(ModelValidationState.
Unvalidated
, dictionary["Property2"].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);
1355
Assert.Equal(ModelValidationState.
Unvalidated
, dictionary["Product.Detail1"].ValidationState);
1357
Assert.Equal(ModelValidationState.
Unvalidated
, dictionary["Product.Detail1.Name"].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);
1431
Assert.Equal(ModelValidationState.
Unvalidated
, entry.Value.ValidationState);
1551
Assert.Equal(ModelValidationState.
Unvalidated
, value.ValidationState);
1617
Assert.Equal(ModelValidationState.
Unvalidated
, validationState);
Microsoft.AspNetCore.Mvc.Core (5)
ModelBinding\Binders\ComplexObjectModelBinder.cs (1)
728
if (validationState == ModelValidationState.
Unvalidated
)
ModelBinding\Binders\ComplexTypeModelBinder.cs (1)
566
if (validationState == ModelValidationState.
Unvalidated
)
ModelBinding\ModelBindingHelper.cs (2)
409
kvp.Value.ValidationState = ModelValidationState.
Unvalidated
;
429
entry.ValidationState = ModelValidationState.
Unvalidated
;
ModelBinding\Validation\ValidationVisitor.cs (1)
348
if (item.Value.ValidationState == ModelValidationState.
Unvalidated
)
Microsoft.AspNetCore.Mvc.Core.Test (13)
ModelBinding\ModelBindingHelperTest.cs (11)
655
Assert.Equal(ModelValidationState.
Unvalidated
, dictionary["Name"].ValidationState);
657
Assert.Equal(ModelValidationState.
Unvalidated
, dictionary["Id"].ValidationState);
659
Assert.Equal(ModelValidationState.
Unvalidated
, dictionary["Category"].ValidationState);
684
Assert.Equal(ModelValidationState.
Unvalidated
, dictionary[string.Empty].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);
764
Assert.Equal(ModelValidationState.
Unvalidated
, dictionary[entry].ValidationState);
ModelBinding\Validation\DefaultObjectValidatorTests.cs (2)
539
Assert.Equal(ModelValidationState.
Unvalidated
, entry.Value.ValidationState);
1333
[InlineData(false, ModelValidationState.
Unvalidated
)]
Microsoft.AspNetCore.Mvc.IntegrationTests (7)
DictionaryModelBinderIntegrationTest.cs (1)
810
Assert.NotEqual(ModelValidationState.
Unvalidated
, kvp.Value.ValidationState);
ValidationIntegrationTests.cs (3)
1858
Assert.Equal(ModelValidationState.
Unvalidated
, entry.Value.ValidationState);
1904
Assert.Equal(ModelValidationState.
Unvalidated
, entry.Value.ValidationState);
1954
Assert.Equal(ModelValidationState.
Unvalidated
, entry.Value.ValidationState);
ValidationWithRecordIntegrationTests.cs (3)
1661
Assert.Equal(ModelValidationState.
Unvalidated
, entry.Value.ValidationState);
1707
Assert.Equal(ModelValidationState.
Unvalidated
, entry.Value.ValidationState);
1757
Assert.Equal(ModelValidationState.
Unvalidated
, entry.Value.ValidationState);