1 type derived from CompositeModelValidatorProvider
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
TestModelValidatorProvider.cs (1)
10public class TestModelValidatorProvider : CompositeModelValidatorProvider
4 instantiations of CompositeModelValidatorProvider
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\ObjectModelValidator.cs (1)
34_validatorProvider = new CompositeModelValidatorProvider(validatorProviders);
Microsoft.AspNetCore.Mvc.Core.Test (1)
ModelBinding\Validation\CompositeModelValidatorProviderTest.cs (1)
34var compositeModelValidator = new CompositeModelValidatorProvider(new[] { provider1.Object, provider2.Object });
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
ModelBindingTestHelper.cs (2)
77new[] { new CompositeModelValidatorProvider(GetModelValidatorProviders(options)) }, 99new[] { new CompositeModelValidatorProvider(GetModelValidatorProviders(options)) },
17 references to CompositeModelValidatorProvider
Microsoft.AspNetCore.Mvc.Core (2)
ModelBinding\ObjectModelValidator.cs (1)
17private readonly CompositeModelValidatorProvider _validatorProvider;
ModelBinding\Validation\CompositeModelValidatorProvider.cs (1)
14/// Initializes a new instance of <see cref="CompositeModelValidatorProvider"/>.
Microsoft.AspNetCore.Mvc.Core.Test (8)
ModelBinding\Validation\CompositeModelValidatorProviderTest.cs (1)
34var compositeModelValidator = new CompositeModelValidatorProvider(new[] { provider1.Object, provider2.Object });
ModelBinding\Validation\DefaultModelValidatorProviderTest.cs (6)
17var validatorProvider = TestModelValidatorProvider.CreateDefaultProvider(); 37var validatorProvider = TestModelValidatorProvider.CreateDefaultProvider(); 57var validatorProvider = TestModelValidatorProvider.CreateDefaultProvider(); 79var validatorProvider = TestModelValidatorProvider.CreateDefaultProvider(); 102var validatorProvider = TestModelValidatorProvider.CreateDefaultProvider(); 124var validatorProvider = TestModelValidatorProvider.CreateDefaultProvider();
ModelBinding\Validation\ValidatorCacheTest.cs (1)
17var validatorProvider = TestModelValidatorProvider.CreateDefaultProvider();
Microsoft.AspNetCore.Mvc.Core.TestCommon (3)
TestModelMetadataProvider.cs (2)
37var validationProviders = TestModelValidatorProvider.CreateDefaultProvider(); 61var validationProviders = TestModelValidatorProvider.CreateDefaultProvider();
TestModelValidatorProvider.cs (1)
13public static CompositeModelValidatorProvider CreateDefaultProvider(IStringLocalizerFactory stringLocalizerFactory = null)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (4)
DefaultModelClientValidatorProviderTest.cs (4)
18var validatorProvider = TestModelValidatorProvider.CreateDefaultProvider(); 38var validatorProvider = TestModelValidatorProvider.CreateDefaultProvider(); 59var validatorProvider = TestModelValidatorProvider.CreateDefaultProvider(); 81var validatorProvider = TestModelValidatorProvider.CreateDefaultProvider();