47 instantiations of 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);
62 references to ValidationMetadataProviderContext
Microsoft.AspNetCore.Mvc.Core (9)
ModelBinding\Metadata\DefaultCompositeMetadataDetailsProvider.cs (1)
51
public void CreateValidationMetadata(
ValidationMetadataProviderContext
context)
ModelBinding\Metadata\DefaultModelMetadata.cs (1)
143
var
context = new ValidationMetadataProviderContext(Identity, _details.ModelAttributes);
ModelBinding\Metadata\DefaultValidationMetadataProvider.cs (1)
17
public void CreateValidationMetadata(
ValidationMetadataProviderContext
context)
ModelBinding\Metadata\HasValidatorsValidationMetadataProvider.cs (1)
25
public void CreateValidationMetadata(
ValidationMetadataProviderContext
context)
ModelBinding\Metadata\IValidationMetadataProvider.cs (2)
16
/// <param name="context">The <see cref="
ValidationMetadataProviderContext
"/>.</param>
17
void CreateValidationMetadata(
ValidationMetadataProviderContext
context);
ModelBinding\Metadata\SystemTextJsonValidationMetadataProvider.cs (1)
52
public void CreateValidationMetadata(
ValidationMetadataProviderContext
context)
ModelBinding\Metadata\ValidationMetadataProviderContext.cs (1)
14
/// Creates a new <see cref="
ValidationMetadataProviderContext
"/>.
ModelBinding\SuppressChildValidationMetadataProvider.cs (1)
56
public void CreateValidationMetadata(
ValidationMetadataProviderContext
context)
Microsoft.AspNetCore.Mvc.Core.Test (19)
ModelBinding\Metadata\DefaultModelMetadataTest.cs (1)
1673
public void CreateValidationMetadata(
ValidationMetadataProviderContext
context)
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);
ModelBinding\Validation\DefaultComplexObjectValidationStrategyTest.cs (1)
226
public void CreateValidationMetadata(
ValidationMetadataProviderContext
context)
Microsoft.AspNetCore.Mvc.Core.TestCommon (2)
TestModelMetadataProvider.cs (2)
167
public void CreateValidationMetadata(
ValidationMetadataProviderContext
context)
220
public void Apply(
ValidationMetadataProviderContext
context)
Microsoft.AspNetCore.Mvc.DataAnnotations (2)
DataAnnotationsMetadataProvider.cs (2)
298
public void CreateValidationMetadata(
ValidationMetadataProviderContext
context)
426
internal static bool IsRequired(
ValidationMetadataProviderContext
context)
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 (1)
NewtonsoftJsonValidationMetadataProvider.cs (1)
51
public void CreateValidationMetadata(
ValidationMetadataProviderContext
context)
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);