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)
50var customModelValidator = Assert.IsType<CustomModelValidatorAttribute>(validatorItem.Validator); 72var validatorItem = Assert.IsType<CustomModelValidatorAttribute>(Assert.Single(validatorItems).Validator); 95Assert.Single(validatorItems, v => Assert.IsType<CustomModelValidatorAttribute>(v.Validator).Tag == "Class"); 96Assert.Single(validatorItems, v => Assert.IsType<CustomModelValidatorAttribute>(v.Validator).Tag == "Property");