2 implementations of HasValidators
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Validation\DefaultModelValidatorProvider.cs (1)
39
public bool
HasValidators
(Type modelType, IList<object> validatorMetadata)
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
DataAnnotationsModelValidatorProvider.cs (1)
97
public bool
HasValidators
(Type modelType, IList<object> validatorMetadata)
5 references to HasValidators
Microsoft.AspNetCore.Mvc.Core (2)
ModelBinding\Metadata\HasValidatorsValidationMetadataProvider.cs (2)
37
if (provider.
HasValidators
(context.Key.ModelType, context.ValidationMetadata.ValidatorMetadata))
52
if (provider.
HasValidators
(typeof(object), propertyAttributes))
Microsoft.AspNetCore.Mvc.Core.Test (3)
ModelBinding\Metadata\HasValidatorsValidationMetadataProviderTest.cs (3)
56
metadataBasedModelValidatorProvider.Setup(p => p.
HasValidators
(typeof(object), It.IsAny<IList<object>>()))
84
var provider = Mock.Of<IMetadataBasedModelValidatorProvider>(p => p.
HasValidators
(typeof(object), It.IsAny<IList<object>>()) == false);
107
var provider = Mock.Of<IMetadataBasedModelValidatorProvider>(p => p.
HasValidators
(typeof(object), It.IsAny<IList<object>>()) == false);