4 instantiations of CustomModelValidatorAttribute
Microsoft.AspNetCore.Mvc.Core.Test (4)
ModelBinding\Validation\DefaultModelValidatorProviderTest.cs (4)
147
var attributes = new object[] { new RequiredAttribute(), new
CustomModelValidatorAttribute
(), new BindRequiredAttribute(), };
183
[
CustomModelValidator
(Tag = "Class")]
190
[
CustomModelValidator
(Tag = "Property")]
196
[
CustomModelValidator
(Tag = "Property")]
6 references to CustomModelValidatorAttribute
Microsoft.AspNetCore.Mvc.Core.Test (6)
ModelBinding\Validation\DefaultModelValidatorProviderTest.cs (6)
48
var
validator = Assert.IsType<
CustomModelValidatorAttribute
>(Assert.Single(validatorItems).Validator);
70
var
validator = Assert.IsType<
CustomModelValidatorAttribute
>(Assert.Single(validatorItems).Validator);
93
Assert.Single(validatorItems, v => Assert.IsType<
CustomModelValidatorAttribute
>(v.Validator).Tag == "Class");
94
Assert.Single(validatorItems, v => Assert.IsType<
CustomModelValidatorAttribute
>(v.Validator).Tag == "Property");