3 instantiations of CustomModelValidatorAttribute
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (3)
DefaultModelClientValidatorProviderTest.cs (3)
208
[
CustomModelValidator
(Tag = "Class")]
215
[
CustomModelValidator
(Tag = "Property")]
221
[
CustomModelValidator
(Tag = "Property")]
6 references to CustomModelValidatorAttribute
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (6)
DefaultModelClientValidatorProviderTest.cs (6)
50
var
customModelValidator = Assert.IsType<
CustomModelValidatorAttribute
>(validatorItem.Validator);
72
var
validatorItem = Assert.IsType<
CustomModelValidatorAttribute
>(Assert.Single(validatorItems).Validator);
95
Assert.Single(validatorItems, v => Assert.IsType<
CustomModelValidatorAttribute
>(v.Validator).Tag == "Class");
96
Assert.Single(validatorItems, v => Assert.IsType<
CustomModelValidatorAttribute
>(v.Validator).Tag == "Property");