47 instantiations of ValidationMetadataProviderContext
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Metadata\DefaultModelMetadata.cs (1)
143var context = new ValidationMetadataProviderContext(Identity, _details.ModelAttributes);
Microsoft.AspNetCore.Mvc.Core.Test (17)
ModelBinding\Metadata\DefaultValidationMetadataProviderTest.cs (8)
18var context = new ValidationMetadataProviderContext(key, new ModelAttributes(new object[0], attributes, null)); 38var context = new ValidationMetadataProviderContext(key, new ModelAttributes(attributes, new object[0], null)); 55var context = new ValidationMetadataProviderContext(key, new ModelAttributes(attributes, null, null)); 74var context = new ValidationMetadataProviderContext(key, new ModelAttributes(new object[0], new object[0], null)); 96var context = new ValidationMetadataProviderContext(key, new ModelAttributes(new object[0], new object[0], null)); 117var context = new ValidationMetadataProviderContext(key, new ModelAttributes(new object[0], attributes, null)); 136var context = new ValidationMetadataProviderContext(key, new ModelAttributes(new object[0], attributes, null)); 155var context = new ValidationMetadataProviderContext(key, new ModelAttributes(new object[0], attributes, null));
ModelBinding\Metadata\HasValidatorsValidationMetadataProviderTest.cs (5)
24var context = new ValidationMetadataProviderContext(key, modelAttributes); 42var context = new ValidationMetadataProviderContext(key, modelAttributes); 70var context = new ValidationMetadataProviderContext(key, modelAttributes); 94var context = new ValidationMetadataProviderContext(key, modelAttributes); 117var context = new ValidationMetadataProviderContext(key, modelAttributes);
ModelBinding\Metadata\SystemTextJsonValidationMetadataProviderTest.cs (4)
19var context = new ValidationMetadataProviderContext(key, modelAttributes); 37var context = new ValidationMetadataProviderContext(key, modelAttributes); 54var context = new ValidationMetadataProviderContext(key, modelAttributes); 72var context = new ValidationMetadataProviderContext(key, modelAttributes);
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (26)
DataAnnotationsMetadataProviderTest.cs (26)
1113var context = new ValidationMetadataProviderContext(key, GetModelAttributes(new object[0], attributes)); 1134var context = new ValidationMetadataProviderContext(key, GetModelAttributes(new object[0], attributes)); 1157var context = new ValidationMetadataProviderContext(key, attributes); 1182var context = new ValidationMetadataProviderContext(key, attributes); 1212var context = new ValidationMetadataProviderContext(key, attributes); 1233var context = new ValidationMetadataProviderContext(key, ModelAttributes.GetAttributesForProperty(modelType, property)); 1252var context = new ValidationMetadataProviderContext(key, ModelAttributes.GetAttributesForProperty(modelType, property)); 1271var context = new ValidationMetadataProviderContext(key, ModelAttributes.GetAttributesForProperty(modelType, property)); 1292var context = new ValidationMetadataProviderContext(key, ModelAttributes.GetAttributesForProperty(modelType, property)); 1312var context = new ValidationMetadataProviderContext(key, ModelAttributes.GetAttributesForProperty(modelType, property)); 1331var context = new ValidationMetadataProviderContext(key, ModelAttributes.GetAttributesForProperty(modelType, property)); 1350var context = new ValidationMetadataProviderContext(key, ModelAttributes.GetAttributesForProperty(modelType, property)); 1369var context = new ValidationMetadataProviderContext(key, ModelAttributes.GetAttributesForProperty(modelType, property)); 1390var context = new ValidationMetadataProviderContext(key, ModelAttributes.GetAttributesForParameter(parameter)); 1411var context = new ValidationMetadataProviderContext(key, ModelAttributes.GetAttributesForParameter(parameter)); 1432var context = new ValidationMetadataProviderContext(key, ModelAttributes.GetAttributesForProperty(modelType, property)); 1457var context = new ValidationMetadataProviderContext(key, GetModelAttributes(new object[0], attributes)); 1527var context = new ValidationMetadataProviderContext(key, GetModelAttributes(new object[0], attributes)); 1547var context = new ValidationMetadataProviderContext(key, GetModelAttributes(new object[0], attributes)); 1568var context = new ValidationMetadataProviderContext(key, GetModelAttributes(new object[0], attributes)); 1586var context = new ValidationMetadataProviderContext(key, GetModelAttributes(property.GetCustomAttributes(inherit: true))); 1602var context = new ValidationMetadataProviderContext(key, GetModelAttributes(property.GetCustomAttributes(inherit: true))); 1619var context = new ValidationMetadataProviderContext(key, GetModelAttributes(property.GetCustomAttributes(inherit: true))); 1638var context = new ValidationMetadataProviderContext(key, GetModelAttributes(property.GetCustomAttributes(inherit: true))); 1655var context = new ValidationMetadataProviderContext(key, GetModelAttributes(parameter.GetCustomAttributes(inherit: true))); 1672var context = new ValidationMetadataProviderContext(key, GetModelAttributes(parameter.GetCustomAttributes(inherit: true)));
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (3)
NewtonsoftJsonValidationMetadataProviderTest.cs (3)
21var context = new ValidationMetadataProviderContext(key, modelAttributes); 39var context = new ValidationMetadataProviderContext(key, modelAttributes); 58var context = new ValidationMetadataProviderContext(key, modelAttributes);
62 references to ValidationMetadataProviderContext
Microsoft.AspNetCore.Mvc.Core (9)
ModelBinding\Metadata\DefaultCompositeMetadataDetailsProvider.cs (1)
51public void CreateValidationMetadata(ValidationMetadataProviderContext context)
ModelBinding\Metadata\DefaultModelMetadata.cs (1)
143var context = new ValidationMetadataProviderContext(Identity, _details.ModelAttributes);
ModelBinding\Metadata\DefaultValidationMetadataProvider.cs (1)
17public void CreateValidationMetadata(ValidationMetadataProviderContext context)
ModelBinding\Metadata\HasValidatorsValidationMetadataProvider.cs (1)
25public void CreateValidationMetadata(ValidationMetadataProviderContext context)
ModelBinding\Metadata\IValidationMetadataProvider.cs (2)
16/// <param name="context">The <see cref="ValidationMetadataProviderContext"/>.</param> 17void CreateValidationMetadata(ValidationMetadataProviderContext context);
ModelBinding\Metadata\SystemTextJsonValidationMetadataProvider.cs (1)
52public void CreateValidationMetadata(ValidationMetadataProviderContext context)
ModelBinding\Metadata\ValidationMetadataProviderContext.cs (1)
14/// Creates a new <see cref="ValidationMetadataProviderContext"/>.
ModelBinding\SuppressChildValidationMetadataProvider.cs (1)
56public void CreateValidationMetadata(ValidationMetadataProviderContext context)
Microsoft.AspNetCore.Mvc.Core.Test (19)
ModelBinding\Metadata\DefaultModelMetadataTest.cs (1)
1673public void CreateValidationMetadata(ValidationMetadataProviderContext context)
ModelBinding\Metadata\DefaultValidationMetadataProviderTest.cs (8)
18var context = new ValidationMetadataProviderContext(key, new ModelAttributes(new object[0], attributes, null)); 38var context = new ValidationMetadataProviderContext(key, new ModelAttributes(attributes, new object[0], null)); 55var context = new ValidationMetadataProviderContext(key, new ModelAttributes(attributes, null, null)); 74var context = new ValidationMetadataProviderContext(key, new ModelAttributes(new object[0], new object[0], null)); 96var context = new ValidationMetadataProviderContext(key, new ModelAttributes(new object[0], new object[0], null)); 117var context = new ValidationMetadataProviderContext(key, new ModelAttributes(new object[0], attributes, null)); 136var context = new ValidationMetadataProviderContext(key, new ModelAttributes(new object[0], attributes, null)); 155var context = new ValidationMetadataProviderContext(key, new ModelAttributes(new object[0], attributes, null));
ModelBinding\Metadata\HasValidatorsValidationMetadataProviderTest.cs (5)
24var context = new ValidationMetadataProviderContext(key, modelAttributes); 42var context = new ValidationMetadataProviderContext(key, modelAttributes); 70var context = new ValidationMetadataProviderContext(key, modelAttributes); 94var context = new ValidationMetadataProviderContext(key, modelAttributes); 117var context = new ValidationMetadataProviderContext(key, modelAttributes);
ModelBinding\Metadata\SystemTextJsonValidationMetadataProviderTest.cs (4)
19var context = new ValidationMetadataProviderContext(key, modelAttributes); 37var context = new ValidationMetadataProviderContext(key, modelAttributes); 54var context = new ValidationMetadataProviderContext(key, modelAttributes); 72var context = new ValidationMetadataProviderContext(key, modelAttributes);
ModelBinding\Validation\DefaultComplexObjectValidationStrategyTest.cs (1)
226public void CreateValidationMetadata(ValidationMetadataProviderContext context)
Microsoft.AspNetCore.Mvc.Core.TestCommon (2)
TestModelMetadataProvider.cs (2)
167public void CreateValidationMetadata(ValidationMetadataProviderContext context) 220public void Apply(ValidationMetadataProviderContext context)
Microsoft.AspNetCore.Mvc.DataAnnotations (2)
DataAnnotationsMetadataProvider.cs (2)
298public void CreateValidationMetadata(ValidationMetadataProviderContext context) 426internal static bool IsRequired(ValidationMetadataProviderContext context)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (26)
DataAnnotationsMetadataProviderTest.cs (26)
1113var context = new ValidationMetadataProviderContext(key, GetModelAttributes(new object[0], attributes)); 1134var context = new ValidationMetadataProviderContext(key, GetModelAttributes(new object[0], attributes)); 1157var context = new ValidationMetadataProviderContext(key, attributes); 1182var context = new ValidationMetadataProviderContext(key, attributes); 1212var context = new ValidationMetadataProviderContext(key, attributes); 1233var context = new ValidationMetadataProviderContext(key, ModelAttributes.GetAttributesForProperty(modelType, property)); 1252var context = new ValidationMetadataProviderContext(key, ModelAttributes.GetAttributesForProperty(modelType, property)); 1271var context = new ValidationMetadataProviderContext(key, ModelAttributes.GetAttributesForProperty(modelType, property)); 1292var context = new ValidationMetadataProviderContext(key, ModelAttributes.GetAttributesForProperty(modelType, property)); 1312var context = new ValidationMetadataProviderContext(key, ModelAttributes.GetAttributesForProperty(modelType, property)); 1331var context = new ValidationMetadataProviderContext(key, ModelAttributes.GetAttributesForProperty(modelType, property)); 1350var context = new ValidationMetadataProviderContext(key, ModelAttributes.GetAttributesForProperty(modelType, property)); 1369var context = new ValidationMetadataProviderContext(key, ModelAttributes.GetAttributesForProperty(modelType, property)); 1390var context = new ValidationMetadataProviderContext(key, ModelAttributes.GetAttributesForParameter(parameter)); 1411var context = new ValidationMetadataProviderContext(key, ModelAttributes.GetAttributesForParameter(parameter)); 1432var context = new ValidationMetadataProviderContext(key, ModelAttributes.GetAttributesForProperty(modelType, property)); 1457var context = new ValidationMetadataProviderContext(key, GetModelAttributes(new object[0], attributes)); 1527var context = new ValidationMetadataProviderContext(key, GetModelAttributes(new object[0], attributes)); 1547var context = new ValidationMetadataProviderContext(key, GetModelAttributes(new object[0], attributes)); 1568var context = new ValidationMetadataProviderContext(key, GetModelAttributes(new object[0], attributes)); 1586var context = new ValidationMetadataProviderContext(key, GetModelAttributes(property.GetCustomAttributes(inherit: true))); 1602var context = new ValidationMetadataProviderContext(key, GetModelAttributes(property.GetCustomAttributes(inherit: true))); 1619var context = new ValidationMetadataProviderContext(key, GetModelAttributes(property.GetCustomAttributes(inherit: true))); 1638var context = new ValidationMetadataProviderContext(key, GetModelAttributes(property.GetCustomAttributes(inherit: true))); 1655var context = new ValidationMetadataProviderContext(key, GetModelAttributes(parameter.GetCustomAttributes(inherit: true))); 1672var context = new ValidationMetadataProviderContext(key, GetModelAttributes(parameter.GetCustomAttributes(inherit: true)));
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
NewtonsoftJsonValidationMetadataProvider.cs (1)
51public void CreateValidationMetadata(ValidationMetadataProviderContext context)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (3)
NewtonsoftJsonValidationMetadataProviderTest.cs (3)
21var context = new ValidationMetadataProviderContext(key, modelAttributes); 39var context = new ValidationMetadataProviderContext(key, modelAttributes); 58var context = new ValidationMetadataProviderContext(key, modelAttributes);