238 references to CreateDefaultProvider
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
DefaultApiDescriptionProviderTest.cs (1)
2244var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider();
Microsoft.AspNetCore.Mvc.Core.Test (81)
ApplicationModels\DefaultApplicationModelProviderTest.cs (4)
32var builder = new TestApplicationModelProvider(options, TestModelMetadataProvider.CreateDefaultProvider()); 66TestModelMetadataProvider.CreateDefaultProvider()); 170TestModelMetadataProvider.CreateDefaultProvider()); 214TestModelMetadataProvider.CreateDefaultProvider());
ApplicationModels\InferParameterBindingInfoConventionTest.cs (21)
39var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 114var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 148var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 174var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 200var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 225var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 246var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 267var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 516var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 649var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 670var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 691var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 711var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 732var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 753var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 774var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 795var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 816var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 837var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 857var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 880var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider();
Controllers\ControllerBinderDelegateProviderTest.cs (23)
54var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 66TestModelMetadataProvider.CreateDefaultProvider(), 109var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 121TestModelMetadataProvider.CreateDefaultProvider(), 158var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 200var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 250var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 394var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 447var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 492var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 535var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 589var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 632var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 672var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 712var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 753var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 815var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 878var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 965var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 1040var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 1183TestModelMetadataProvider.CreateDefaultProvider(), 1235TestModelMetadataProvider.CreateDefaultProvider(), 1340var metadataProvider = modelMetadataProvider ?? TestModelMetadataProvider.CreateDefaultProvider();
Infrastructure\ControllerActionInvokerProviderTest.cs (1)
65var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider();
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (1)
20private static readonly IModelMetadataProvider _metadataProvider = TestModelMetadataProvider.CreateDefaultProvider();
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (1)
20private static readonly IModelMetadataProvider _metadataProvider = TestModelMetadataProvider.CreateDefaultProvider();
ModelBinding\ModelBindingHelperTest.cs (9)
67var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 110var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 188var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 264var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 271TestModelMetadataProvider.CreateDefaultProvider(), 315var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 518var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 586var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 1509var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider();
ModelBinding\Validation\DefaultCollectionValidationStrategyTest.cs (3)
16var metadata = TestModelMetadataProvider.CreateDefaultProvider().GetMetadataForType(typeof(List<int>)); 56var metadata = TestModelMetadataProvider.CreateDefaultProvider().GetMetadataForType(typeof(List<int>)); 91var metadata = TestModelMetadataProvider.CreateDefaultProvider().GetMetadataForType(typeof(TwiceEnumerable));
ModelBinding\Validation\DefaultComplexObjectValidationStrategyTest.cs (3)
23var metadata = TestModelMetadataProvider.CreateDefaultProvider().GetMetadataForType(typeof(Person)); 97var metadata = TestModelMetadataProvider.CreateDefaultProvider().GetMetadataForType(typeof(Person)); 131var metadata = TestModelMetadataProvider.CreateDefaultProvider().GetMetadataForType(typeof(LazyPerson));
ModelBinding\Validation\DefaultModelValidatorProviderTest.cs (6)
16var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 36var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 56var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 78var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 101var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 123var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider();
ModelBinding\Validation\DefaultObjectValidatorTests.cs (1)
19private ModelMetadataProvider MetadataProvider { get; } = TestModelMetadataProvider.CreateDefaultProvider();
ModelBinding\Validation\ExplicitIndexCollectionValidationStrategyTest.cs (5)
16var metadata = TestModelMetadataProvider.CreateDefaultProvider().GetMetadataForType(typeof(List<int>)); 56var metadata = TestModelMetadataProvider.CreateDefaultProvider().GetMetadataForType(typeof(List<int>)); 91var metadata = TestModelMetadataProvider.CreateDefaultProvider().GetMetadataForType(typeof(TwiceEnumerable)); 126var metadata = TestModelMetadataProvider.CreateDefaultProvider().GetMetadataForType(typeof(List<int>)); 156var metadata = TestModelMetadataProvider.CreateDefaultProvider().GetMetadataForType(typeof(List<int>));
ModelBinding\Validation\ShortFormDictionaryValidationStrategyTest.cs (3)
19var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 67var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 107var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider();
Microsoft.AspNetCore.Mvc.Core.TestCommon (3)
TestModelBinderFactory.cs (3)
17TestModelMetadataProvider.CreateDefaultProvider(), 33metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 55metadataProvider = TestModelMetadataProvider.CreateDefaultProvider();
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (58)
CompareAttributeAdapterTest.cs (6)
20var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 55var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 98var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 132var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 171var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 210var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider();
DataAnnotationsClientModelValidatorProviderTest.cs (1)
13private readonly IModelMetadataProvider _metadataProvider = TestModelMetadataProvider.CreateDefaultProvider();
DataAnnotationsModelValidatorProviderTest.cs (1)
14private readonly IModelMetadataProvider _metadataProvider = TestModelMetadataProvider.CreateDefaultProvider();
DataAnnotationsModelValidatorTest.cs (1)
17= TestModelMetadataProvider.CreateDefaultProvider();
DataTypeClientModelValidatorProviderTest.cs (1)
11private readonly IModelMetadataProvider _metadataProvider = TestModelMetadataProvider.CreateDefaultProvider();
DefaultModelClientValidatorProviderTest.cs (8)
17var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 37var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 58var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 80var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 104var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 127var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 148var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 171var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider();
FileExtensionsAttributeAdapterTest.cs (4)
22var provider = TestModelMetadataProvider.CreateDefaultProvider(); 73var provider = TestModelMetadataProvider.CreateDefaultProvider(); 103var provider = TestModelMetadataProvider.CreateDefaultProvider(); 137var provider = TestModelMetadataProvider.CreateDefaultProvider();
MaxLengthAttributeAdapterTest.cs (5)
20var provider = TestModelMetadataProvider.CreateDefaultProvider(); 54var provider = TestModelMetadataProvider.CreateDefaultProvider(); 83var provider = TestModelMetadataProvider.CreateDefaultProvider(); 110var provider = TestModelMetadataProvider.CreateDefaultProvider(); 143var provider = TestModelMetadataProvider.CreateDefaultProvider();
MinLengthAttributeAdapterTest.cs (4)
20var provider = TestModelMetadataProvider.CreateDefaultProvider(); 54var provider = TestModelMetadataProvider.CreateDefaultProvider(); 82var provider = TestModelMetadataProvider.CreateDefaultProvider(); 110var provider = TestModelMetadataProvider.CreateDefaultProvider();
ModelMetadataProviderTest.cs (12)
697var provider = TestModelMetadataProvider.CreateDefaultProvider(); 712var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 727var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 742var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 757var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 773var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 789var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 802var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 817var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 833var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 849var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 865var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider();
NumericClientModelValidatorTest.cs (2)
18var provider = TestModelMetadataProvider.CreateDefaultProvider(); 133var provider = TestModelMetadataProvider.CreateDefaultProvider();
RangeAttributeAdapterTest.cs (3)
19var provider = TestModelMetadataProvider.CreateDefaultProvider(); 49var provider = TestModelMetadataProvider.CreateDefaultProvider(); 85var provider = TestModelMetadataProvider.CreateDefaultProvider();
RequiredAttributeAdapterTest.cs (3)
20var provider = TestModelMetadataProvider.CreateDefaultProvider(); 55var provider = TestModelMetadataProvider.CreateDefaultProvider(); 80var provider = TestModelMetadataProvider.CreateDefaultProvider();
StringLengthAttributeAdapterTest.cs (5)
20var provider = TestModelMetadataProvider.CreateDefaultProvider(); 55var provider = TestModelMetadataProvider.CreateDefaultProvider(); 82var provider = TestModelMetadataProvider.CreateDefaultProvider(); 110var provider = TestModelMetadataProvider.CreateDefaultProvider(); 136var provider = TestModelMetadataProvider.CreateDefaultProvider();
ValidatableObjectAdapterTest.cs (1)
13= TestModelMetadataProvider.CreateDefaultProvider();
ValidationAttributeAdapterOfTAttributeTest.cs (1)
18var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider();
Microsoft.AspNetCore.Mvc.IntegrationTests (31)
ActionParametersIntegrationTest.cs (6)
648var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 681var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 726var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 779var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 821var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 866var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider();
AuthorizeFilterIntegrationTest.cs (1)
170TestModelMetadataProvider.CreateDefaultProvider());
BindPropertyIntegrationTest.cs (4)
120var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 160var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 216var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 279var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider();
ModelBindingTestHelper.cs (2)
52var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 185return TestModelMetadataProvider.CreateDefaultProvider();
NullableReferenceTypeIntegrationTest.cs (1)
168var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider();
ValidationIntegrationTests.cs (7)
2024var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 2076var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 2146var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 2312var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 2366var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 2470var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 2515var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider();
ValidationWithRecordIntegrationTests.cs (10)
1815var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 1867var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 1937var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 2103var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 2154var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 2256var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 2306var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 2345var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 2386var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 2423var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider();
Microsoft.AspNetCore.Mvc.RazorPages.Test (22)
ApplicationModels\AuthorizationPageApplicationModelProviderTest.cs (1)
188var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider();
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (1)
1219var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider();
ApplicationModels\ResponseCacheFilterApplicationModelProviderTest.cs (1)
142var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider();
Infrastructure\PageActionInvokerProviderTest.cs (1)
504var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider();
Infrastructure\PageBinderFactoryTest.cs (18)
31var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 57var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 82var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 108var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 133var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 159var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 209var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 275var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 325var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 388var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 447var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 497var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 539var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 588var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 631var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 664var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 718var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 810TestModelMetadataProvider.CreateDefaultProvider(),
Microsoft.AspNetCore.Mvc.TagHelpers.Test (8)
InputTagHelperTest.cs (8)
1849var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 1918var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 2012var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 2087var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 2149var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 2217var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 2283var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 2341var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider();
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (33)
ControllerTest.cs (2)
37var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 430var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider();
DefaultHtmlGeneratorTest.cs (3)
936var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 963var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 988var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider();
Rendering\DefaultTemplatesUtilities.cs (7)
66provider: TestModelMetadataProvider.CreateDefaultProvider()); 71var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 89TestModelMetadataProvider.CreateDefaultProvider(), 104TestModelMetadataProvider.CreateDefaultProvider(), 118var provider = TestModelMetadataProvider.CreateDefaultProvider(); 168TestModelMetadataProvider.CreateDefaultProvider(stringLocalizerFactory), 181TestModelMetadataProvider.CreateDefaultProvider(),
Rendering\HtmlHelperCheckboxTest.cs (2)
637var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 839var provider = TestModelMetadataProvider.CreateDefaultProvider();
Rendering\HtmlHelperSelectTest.cs (19)
421var provider = TestModelMetadataProvider.CreateDefaultProvider(); 458var provider = TestModelMetadataProvider.CreateDefaultProvider(); 484var provider = TestModelMetadataProvider.CreateDefaultProvider(); 511var provider = TestModelMetadataProvider.CreateDefaultProvider(); 539var provider = TestModelMetadataProvider.CreateDefaultProvider(); 824var provider = TestModelMetadataProvider.CreateDefaultProvider(); 861var provider = TestModelMetadataProvider.CreateDefaultProvider(); 887var provider = TestModelMetadataProvider.CreateDefaultProvider(); 914var provider = TestModelMetadataProvider.CreateDefaultProvider(); 942var provider = TestModelMetadataProvider.CreateDefaultProvider(); 1274var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 1288var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 1312var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(stringLocalizerFactory.Object); 1328var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 1346var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 1360var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 1374var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 1388var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider(); 1493var metadataProvider = TestModelMetadataProvider.CreateDefaultProvider();
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiDocumentServiceTestsBase.cs (1)
69var modelMetadataProvider = TestModelMetadataProvider.CreateDefaultProvider();