47 references to 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);