47 references to ValidationMetadataProviderContext
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Metadata\DefaultModelMetadata.cs (1)
143
var context = new
ValidationMetadataProviderContext
(Identity, _details.ModelAttributes);
Microsoft.AspNetCore.Mvc.Core.Test (17)
ModelBinding\Metadata\DefaultValidationMetadataProviderTest.cs (8)
18
var context = new
ValidationMetadataProviderContext
(key, new ModelAttributes(new object[0], attributes, null));
38
var context = new
ValidationMetadataProviderContext
(key, new ModelAttributes(attributes, new object[0], null));
55
var context = new
ValidationMetadataProviderContext
(key, new ModelAttributes(attributes, null, null));
74
var context = new
ValidationMetadataProviderContext
(key, new ModelAttributes(new object[0], new object[0], null));
96
var context = new
ValidationMetadataProviderContext
(key, new ModelAttributes(new object[0], new object[0], null));
117
var context = new
ValidationMetadataProviderContext
(key, new ModelAttributes(new object[0], attributes, null));
136
var context = new
ValidationMetadataProviderContext
(key, new ModelAttributes(new object[0], attributes, null));
155
var context = new
ValidationMetadataProviderContext
(key, new ModelAttributes(new object[0], attributes, null));
ModelBinding\Metadata\HasValidatorsValidationMetadataProviderTest.cs (5)
24
var context = new
ValidationMetadataProviderContext
(key, modelAttributes);
42
var context = new
ValidationMetadataProviderContext
(key, modelAttributes);
70
var context = new
ValidationMetadataProviderContext
(key, modelAttributes);
94
var context = new
ValidationMetadataProviderContext
(key, modelAttributes);
117
var context = new
ValidationMetadataProviderContext
(key, modelAttributes);
ModelBinding\Metadata\SystemTextJsonValidationMetadataProviderTest.cs (4)
19
var context = new
ValidationMetadataProviderContext
(key, modelAttributes);
37
var context = new
ValidationMetadataProviderContext
(key, modelAttributes);
54
var context = new
ValidationMetadataProviderContext
(key, modelAttributes);
72
var context = new
ValidationMetadataProviderContext
(key, modelAttributes);
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (26)
DataAnnotationsMetadataProviderTest.cs (26)
1113
var context = new
ValidationMetadataProviderContext
(key, GetModelAttributes(new object[0], attributes));
1134
var context = new
ValidationMetadataProviderContext
(key, GetModelAttributes(new object[0], attributes));
1157
var context = new
ValidationMetadataProviderContext
(key, attributes);
1182
var context = new
ValidationMetadataProviderContext
(key, attributes);
1212
var context = new
ValidationMetadataProviderContext
(key, attributes);
1233
var context = new
ValidationMetadataProviderContext
(key, ModelAttributes.GetAttributesForProperty(modelType, property));
1252
var context = new
ValidationMetadataProviderContext
(key, ModelAttributes.GetAttributesForProperty(modelType, property));
1271
var context = new
ValidationMetadataProviderContext
(key, ModelAttributes.GetAttributesForProperty(modelType, property));
1292
var context = new
ValidationMetadataProviderContext
(key, ModelAttributes.GetAttributesForProperty(modelType, property));
1312
var context = new
ValidationMetadataProviderContext
(key, ModelAttributes.GetAttributesForProperty(modelType, property));
1331
var context = new
ValidationMetadataProviderContext
(key, ModelAttributes.GetAttributesForProperty(modelType, property));
1350
var context = new
ValidationMetadataProviderContext
(key, ModelAttributes.GetAttributesForProperty(modelType, property));
1369
var context = new
ValidationMetadataProviderContext
(key, ModelAttributes.GetAttributesForProperty(modelType, property));
1390
var context = new
ValidationMetadataProviderContext
(key, ModelAttributes.GetAttributesForParameter(parameter));
1411
var context = new
ValidationMetadataProviderContext
(key, ModelAttributes.GetAttributesForParameter(parameter));
1432
var context = new
ValidationMetadataProviderContext
(key, ModelAttributes.GetAttributesForProperty(modelType, property));
1457
var context = new
ValidationMetadataProviderContext
(key, GetModelAttributes(new object[0], attributes));
1527
var context = new
ValidationMetadataProviderContext
(key, GetModelAttributes(new object[0], attributes));
1547
var context = new
ValidationMetadataProviderContext
(key, GetModelAttributes(new object[0], attributes));
1568
var context = new
ValidationMetadataProviderContext
(key, GetModelAttributes(new object[0], attributes));
1586
var context = new
ValidationMetadataProviderContext
(key, GetModelAttributes(property.GetCustomAttributes(inherit: true)));
1602
var context = new
ValidationMetadataProviderContext
(key, GetModelAttributes(property.GetCustomAttributes(inherit: true)));
1619
var context = new
ValidationMetadataProviderContext
(key, GetModelAttributes(property.GetCustomAttributes(inherit: true)));
1638
var context = new
ValidationMetadataProviderContext
(key, GetModelAttributes(property.GetCustomAttributes(inherit: true)));
1655
var context = new
ValidationMetadataProviderContext
(key, GetModelAttributes(parameter.GetCustomAttributes(inherit: true)));
1672
var context = new
ValidationMetadataProviderContext
(key, GetModelAttributes(parameter.GetCustomAttributes(inherit: true)));
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (3)
NewtonsoftJsonValidationMetadataProviderTest.cs (3)
21
var context = new
ValidationMetadataProviderContext
(key, modelAttributes);
39
var context = new
ValidationMetadataProviderContext
(key, modelAttributes);
58
var context = new
ValidationMetadataProviderContext
(key, modelAttributes);