Implemented interface member:
method
Validate
Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IObjectModelValidator.Validate(Microsoft.AspNetCore.Mvc.ActionContext, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary, System.String, System.Object)
43 references to Validate
Microsoft.AspNetCore.Mvc.Core (2)
ModelBinding\ObjectModelValidator.cs (2)
59
/// model state errors that <see cref="
Validate
(ActionContext, ValidationStateDictionary, string, object)"/>
79
/// model state errors that <see cref="
Validate
(ActionContext, ValidationStateDictionary, string, object)"/>
Microsoft.AspNetCore.Mvc.Core.Test (41)
ModelBinding\Validation\DefaultObjectValidatorTests.cs (41)
37
validator.
Validate
(actionContext, validationState, "parameter", model);
63
validator.
Validate
(actionContext, validationState, "parameter", model);
92
validator.
Validate
(actionContext, validationState, "parameter", model);
119
validator.
Validate
(actionContext, validationState, "parameter", model);
145
validator.
Validate
(actionContext, validationState, "parameter", model);
169
validator.
Validate
(actionContext, validationState, "parameter", model);
201
validator.
Validate
(actionContext, validationState, "parameter", model);
231
validator.
Validate
(actionContext, validationState, string.Empty, model);
274
validator.
Validate
(actionContext, validationState, "person", model);
306
validator.
Validate
(actionContext, validationState, "parameter", model);
338
validator.
Validate
(actionContext, validationState, string.Empty, model);
370
validator.
Validate
(actionContext, validationState, string.Empty, model);
410
validator.
Validate
(actionContext, validationState, prefix: null, model: model);
444
validator.
Validate
(actionContext, validationState, prefix: "invalidProperties", model: model);
483
validator.
Validate
(actionContext, validationState, "parameter", model);
530
validator.
Validate
(actionContext, validationState, "parameter", model);
606
validator.
Validate
(actionContext, validationState, prefix: null, model: model.Object);
629
validator.
Validate
(actionContext, validationState, "parameter", model);
660
validator.
Validate
(actionContext, validationState, "parameter", model);
696
validator.
Validate
(actionContext, validationState, "parameter", model);
736
validator.
Validate
(actionContext, validationState, "user", model);
766
validator.
Validate
(actionContext, validationState, "parameter", model);
797
validator.
Validate
(actionContext, validationState, string.Empty, model);
840
validator.
Validate
(actionContext, validationState, string.Empty, model);
922
validator.
Validate
(actionContext, validationState, "items", model);
956
validator.
Validate
(actionContext, validationState, prefix: null, model: model);
998
validator.
Validate
(actionContext, validationState, "items", model);
1039
validator.
Validate
(actionContext, validationState, string.Empty, model);
1098
validator.
Validate
(actionContext, validationState, string.Empty, model);
1120
validator.
Validate
(actionContext, validationState, string.Empty, model);
1145
validator.
Validate
(actionContext, validationState, "user", model);
1175
validator.
Validate
(actionContext, validationState, "userIds", model);
1210
validator.
Validate
(actionContext, validationState, "parameter", model);
1238
validator.
Validate
(actionContext, validationState, prefix: string.Empty, model);
1279
var ex = Assert.Throws<InvalidOperationException>(() => validator.
Validate
(actionContext, validationState, prefix: string.Empty, model));
1299
validator.
Validate
(actionContext, validationState, prefix: string.Empty, model);
1328
validator.
Validate
(actionContext, validationState, prefix: string.Empty, model);
1351
validator.
Validate
(actionContext, validationState, prefix: string.Empty, model);
1374
validator.
Validate
(actionContext, validationState, string.Empty, model);
1405
validator.
Validate
(actionContext, validationState, string.Empty, model);
1435
validator.
Validate
(actionContext, validationState, string.Empty, model);