35 references to Skipped
Microsoft.AspNetCore.Mvc.Abstractions (5)
ModelBinding\ModelStateDictionary.cs (3)
163
return state == ModelValidationState.Valid || state == ModelValidationState.
Skipped
;
422
/// as <see cref="ModelValidationState.
Skipped
"/>.
437
modelState.ValidationState = ModelValidationState.
Skipped
;
ModelBinding\ModelValidationState.cs (2)
39
/// if the validity of the entry and all descendants is either <see cref="Valid"/> or <see cref="
Skipped
"/>.
47
/// The aggregate validity of an entry is never <see cref="
Skipped
"/>.
Microsoft.AspNetCore.Mvc.Abstractions.Test (8)
ModelBinding\ModelStateDictionaryTest.cs (8)
153
Assert.Equal(ModelValidationState.
Skipped
, source["key"].ValidationState);
167
Assert.Equal(ModelValidationState.
Skipped
, source["key"].ValidationState);
182
Assert.Equal(ModelValidationState.
Skipped
, source["key"].ValidationState);
271
entry.ValidationState = ModelValidationState.
Skipped
;
496
Assert.Equal(ModelValidationState.
Skipped
, validationState);
1358
Assert.Equal(ModelValidationState.
Skipped
, dictionary["Product.Detail1Name"].ValidationState);
1423
Assert.Equal(ModelValidationState.
Skipped
, entry.Value.ValidationState);
1544
Assert.Equal(ModelValidationState.
Skipped
, value.ValidationState);
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Validation\ValidationVisitor.cs (1)
468
entry.Value.ValidationState = ModelValidationState.
Skipped
;
Microsoft.AspNetCore.Mvc.Core.Test (7)
ModelBinding\Validation\DefaultObjectValidatorTests.cs (7)
99
Assert.Equal(ModelValidationState.
Skipped
, entry.ValidationState);
126
Assert.Equal(ModelValidationState.
Skipped
, entry.ValidationState);
285
Assert.Equal(ModelValidationState.
Skipped
, entry.ValidationState);
1152
Assert.Equal(ModelValidationState.
Skipped
, entry.ValidationState);
1182
Assert.Equal(ModelValidationState.
Skipped
, entry.ValidationState);
1402
modelState["Property2"].ValidationState = ModelValidationState.
Skipped
;
1415
Assert.Equal(ModelValidationState.
Skipped
, entry.ValidationState);
Microsoft.AspNetCore.Mvc.IntegrationTests (14)
DictionaryModelBinderIntegrationTest.cs (1)
811
Assert.NotEqual(ModelValidationState.
Skipped
, kvp.Value.ValidationState);
ValidationIntegrationTests.cs (7)
1464
Assert.Equal(ModelValidationState.
Skipped
, state.ValidationState);
1526
Assert.Equal(ModelValidationState.
Skipped
, state.ValidationState);
1601
Assert.Equal(ModelValidationState.
Skipped
, 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);
ValidationWithRecordIntegrationTests.cs (6)
1308
Assert.Equal(ModelValidationState.
Skipped
, state.ValidationState);
1409
Assert.Equal(ModelValidationState.
Skipped
, 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);