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