4 writes to HasValidators
Microsoft.AspNetCore.Mvc.Core (2)
ModelBinding\Metadata\HasValidatorsValidationMetadataProvider.cs (2)
39
context.ValidationMetadata.
HasValidators
= true;
62
context.ValidationMetadata.
HasValidators
= false;
Microsoft.AspNetCore.Mvc.Core.Test (2)
ModelBinding\Metadata\DefaultModelMetadataTest.cs (1)
1675
context.ValidationMetadata.
HasValidators
= HasValidators;
ModelBinding\Metadata\HasValidatorsValidationMetadataProviderTest.cs (1)
120
context.ValidationMetadata.
HasValidators
= true;
7 references to HasValidators
Microsoft.AspNetCore.Mvc.Core (2)
ModelBinding\Metadata\DefaultModelMetadata.cs (1)
481
if (defaultModelMetadata.ValidationMetadata.
HasValidators
!= false)
ModelBinding\Metadata\HasValidatorsValidationMetadataProvider.cs (1)
60
if (context.ValidationMetadata.
HasValidators
== null)
Microsoft.AspNetCore.Mvc.Core.Test (5)
ModelBinding\Metadata\HasValidatorsValidationMetadataProviderTest.cs (5)
30
Assert.Null(context.ValidationMetadata.
HasValidators
);
48
Assert.Null(context.ValidationMetadata.
HasValidators
);
76
Assert.True(context.ValidationMetadata.
HasValidators
);
100
Assert.False(context.ValidationMetadata.
HasValidators
);
126
Assert.True(context.ValidationMetadata.
HasValidators
);