1 type derived from ValidationHtmlAttributeProvider
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
DefaultValidationHtmlAttributeProvider.cs (1)
14
public class DefaultValidationHtmlAttributeProvider :
ValidationHtmlAttributeProvider
15 references to ValidationHtmlAttributeProvider
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
DefaultHtmlGenerator.cs (3)
42
private readonly
ValidationHtmlAttributeProvider
_validationAttributeProvider;
54
/// <param name="validationAttributeProvider">The <see cref="
ValidationHtmlAttributeProvider
"/>.</param>
61
ValidationHtmlAttributeProvider
validationAttributeProvider)
DefaultValidationHtmlAttributeProvider.cs (1)
12
/// Default implementation of <see cref="
ValidationHtmlAttributeProvider
"/>.
DependencyInjection\MvcViewFeaturesMvcCoreBuilderExtensions.cs (1)
162
services.TryAddSingleton<
ValidationHtmlAttributeProvider
, DefaultValidationHtmlAttributeProvider>();
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (10)
DefaultValidationHtmlAttributeProviderTest.cs (10)
27
var
attributeProvider = GetAttributeProvider(metadataProvider);
62
var
attributeProvider = GetAttributeProvider(metadataProvider);
96
var
attributeProvider = GetAttributeProvider(metadataProvider);
128
var attributeProviderMock = new Mock<
ValidationHtmlAttributeProvider
>() { CallBase = true };
135
var
attributeProvider = attributeProviderMock.Object;
160
var
attributeProvider = GetAttributeProvider(metadataProvider);
203
var attributeProviderMock = new Mock<
ValidationHtmlAttributeProvider
>() { CallBase = true };
210
var
attributeProvider = attributeProviderMock.Object;
234
var
attributeProvider = GetAttributeProvider(metadataProvider);
268
private static
ValidationHtmlAttributeProvider
GetAttributeProvider(IModelMetadataProvider metadataProvider)