36 references to ValidationState
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\ModelStateDictionary.cs (1)
162
var state =
ValidationState
;
Microsoft.AspNetCore.Mvc.Abstractions.Test (6)
ModelBinding\ModelStateDictionaryTest.cs (6)
123
Assert.Equal(ModelValidationState.Valid, dictionary.
ValidationState
);
139
Assert.Equal(ModelValidationState.Valid, dictionary.
ValidationState
);
460
var validationState = dictionary.
ValidationState
;
477
var validationState = dictionary.
ValidationState
;
541
var validationState = dictionary.
ValidationState
;
1633
var validationState = dictionary.
ValidationState
;
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\ControllerActionInvoker.cs (1)
623
var validationState = context.ModelState.
ValidationState
;
Microsoft.AspNetCore.Mvc.Core.Test (5)
ModelBinding\Validation\DefaultObjectValidatorTests.cs (5)
1148
Assert.Equal(ModelValidationState.Valid, modelState.
ValidationState
);
1178
Assert.Equal(ModelValidationState.Valid, modelState.
ValidationState
);
1378
Assert.Equal(ModelValidationState.Valid, modelState.
ValidationState
);
1408
Assert.Equal(ModelValidationState.Valid, modelState.
ValidationState
);
1438
Assert.Equal(ModelValidationState.Invalid, modelState.
ValidationState
);
Microsoft.AspNetCore.Mvc.IntegrationTests (21)
ValidationIntegrationTests.cs (11)
2004
Assert.Equal(ModelValidationState.Valid, modelState.
ValidationState
);
2053
Assert.Equal(ModelValidationState.Valid, modelState.
ValidationState
);
2105
Assert.Equal(ModelValidationState.Invalid, modelState.
ValidationState
);
2176
Assert.Equal(ModelValidationState.Invalid, modelState.
ValidationState
);
2241
Assert.Equal(ModelValidationState.Valid, modelState.
ValidationState
);
2288
Assert.Equal(ModelValidationState.Invalid, modelState.
ValidationState
);
2341
Assert.Equal(ModelValidationState.Valid, modelState.
ValidationState
);
2395
Assert.Equal(ModelValidationState.Invalid, modelState.
ValidationState
);
2445
Assert.Equal(ModelValidationState.Valid, modelState.
ValidationState
);
2497
Assert.Equal(ModelValidationState.Valid, modelState.
ValidationState
);
2547
Assert.Equal(ModelValidationState.Valid, modelState.
ValidationState
);
ValidationWithRecordIntegrationTests.cs (10)
1799
Assert.Equal(ModelValidationState.Valid, modelState.
ValidationState
);
1844
Assert.Equal(ModelValidationState.Valid, modelState.
ValidationState
);
1896
Assert.Equal(ModelValidationState.Invalid, modelState.
ValidationState
);
1967
Assert.Equal(ModelValidationState.Invalid, modelState.
ValidationState
);
2032
Assert.Equal(ModelValidationState.Valid, modelState.
ValidationState
);
2079
Assert.Equal(ModelValidationState.Invalid, modelState.
ValidationState
);
2132
Assert.Equal(ModelValidationState.Valid, modelState.
ValidationState
);
2183
Assert.Equal(ModelValidationState.Invalid, modelState.
ValidationState
);
2233
Assert.Equal(ModelValidationState.Valid, modelState.
ValidationState
);
2283
Assert.Equal(ModelValidationState.Valid, modelState.
ValidationState
);
Microsoft.AspNetCore.Mvc.RazorPages (2)
PageLoggerExtensions.cs (2)
92
var validationState = context.ModelState.
ValidationState
;
115
var validationState = context.ModelState.
ValidationState
;