1 write to MetadataProvider
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
ModelBindingTestHelper.cs (1)
37
MetadataProvider
= metadataProvider,
27 references to MetadataProvider
Microsoft.AspNetCore.Mvc.IntegrationTests (27)
ArrayModelBinderIntegrationTest.cs (1)
394
var metadata = testContext.
MetadataProvider
.GetMetadataForType(parameter.ParameterType);
CollectionModelBinderIntegrationTest.cs (6)
991
var metadata = testContext.
MetadataProvider
.GetMetadataForType(parameter.ParameterType);
1020
var metadata = testContext.
MetadataProvider
.GetMetadataForType(parameter.ParameterType);
1077
var metadata = testContext.
MetadataProvider
.GetMetadataForType(parameter.ParameterType);
1115
var metadata = testContext.
MetadataProvider
.GetMetadataForType(parameter.ParameterType);
1143
var metadata = testContext.
MetadataProvider
.GetMetadataForType(parameter.ParameterType);
1192
var metadata = testContext.
MetadataProvider
.GetMetadataForType(parameter.ParameterType);
ComplexRecordIntegrationTest.cs (6)
3319
var metadata = testContext.
MetadataProvider
.GetMetadataForType(parameter.ParameterType);
3348
var metadata = testContext.
MetadataProvider
.GetMetadataForType(parameter.ParameterType);
3389
var metadata = testContext.
MetadataProvider
.GetMetadataForType(parameter.ParameterType);
3423
var metadata = testContext.
MetadataProvider
.GetMetadataForType(parameter.ParameterType);
4243
return context.
MetadataProvider
.GetMetadataForType(parameter.ParameterType);
4252
context.
MetadataProvider
,
ComplexTypeIntegrationTestBase.cs (6)
3554
var metadata = testContext.
MetadataProvider
.GetMetadataForType(parameter.ParameterType);
3593
var metadata = testContext.
MetadataProvider
.GetMetadataForType(parameter.ParameterType);
3640
var metadata = testContext.
MetadataProvider
.GetMetadataForType(parameter.ParameterType);
3692
var metadata = testContext.
MetadataProvider
.GetMetadataForType(parameter.ParameterType);
3742
return context.
MetadataProvider
.GetMetadataForType(parameter.ParameterType);
3751
context.
MetadataProvider
,
DictionaryModelBinderIntegrationTest.cs (1)
1220
var metadata = testContext.
MetadataProvider
.GetMetadataForType(parameter.ParameterType);
TryUpdateModelIntegrationTest.cs (2)
1365
testContext.
MetadataProvider
,
1368
ModelBindingTestHelper.GetObjectValidator(testContext.
MetadataProvider
));
TryValidateModelIntegrationTest.cs (5)
32
var controller = CreateController(testContext, testContext.
MetadataProvider
);
63
var controller = CreateController(testContext, testContext.
MetadataProvider
);
106
var controller = CreateController(testContext, testContext.
MetadataProvider
);
139
var controller = CreateController(testContext, testContext.
MetadataProvider
, o => o.ValidateComplexTypesIfChildValidationFails = true);
160
var controller = CreateController(testContext, testContext.
MetadataProvider
, o => o.ValidateComplexTypesIfChildValidationFails = false);