292 references to MvcOptions
BasicWebSite (1)
Controllers\ContentNegotiation\NormalController.cs (1)
28_indentingFormatter = new NewtonsoftJsonOutputFormatter(_indentedSettings, charPool, new MvcOptions(), new MvcNewtonsoftJsonOptions());
FormatterWebSite (1)
Controllers\JsonFormatterController.cs (1)
27_indentingFormatter = new NewtonsoftJsonOutputFormatter(_indentedSettings, charPool, new MvcOptions(), new MvcNewtonsoftJsonOptions());
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
ModelBinding\ModelStateDictionaryTest.cs (1)
1763public MvcOptions Value { get; } = new MvcOptions();
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (11)
ApiResponseTypeProviderTest.cs (3)
718var provider = new ApiResponseTypeProvider(new EmptyModelMetadataProvider(), new ActionResultTypeMapper(), new MvcOptions()); 758var provider = new ApiResponseTypeProvider(new EmptyModelMetadataProvider(), new ActionResultTypeMapper(), new MvcOptions()); 769var mvcOptions = new MvcOptions
DefaultApiDescriptionProviderTest.cs (8)
2026DefaultApiDescriptionProvider.ProcessIsRequired(context, new MvcOptions()); 2040DefaultApiDescriptionProvider.ProcessIsRequired(context, new MvcOptions { AllowEmptyInputInBodyModelBinding = true }); 2061DefaultApiDescriptionProvider.ProcessIsRequired(context, new MvcOptions()); 2083DefaultApiDescriptionProvider.ProcessIsRequired(context, new MvcOptions()); 2101DefaultApiDescriptionProvider.ProcessIsRequired(context, new MvcOptions()); 2115DefaultApiDescriptionProvider.ProcessIsRequired(context, new MvcOptions()); 2134DefaultApiDescriptionProvider.ProcessIsRequired(context, new MvcOptions()); 2227var options = new MvcOptions();
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\EmptyModelMetadataProvider.cs (1)
28public MvcOptions Value { get; } = new MvcOptions();
Microsoft.AspNetCore.Mvc.Core.Test (134)
AcceptedAtActionResultTests.cs (1)
268var options = Options.Create(new MvcOptions());
AcceptedAtRouteResultTests.cs (1)
176var options = Options.Create(new MvcOptions());
AcceptedResultTests.cs (1)
133var options = Options.Create(new MvcOptions());
ApplicationModels\AuthorizationApplicationModelProviderTest.cs (4)
16private readonly IOptions<MvcOptions> OptionsWithoutEndpointRouting = Options.Create(new MvcOptions { EnableEndpointRouting = false }); 24Options.Create(new MvcOptions())); 42Options.Create(new MvcOptions())); 209Options.Create(new MvcOptions()),
ApplicationModels\ConsumesConstraintForFormFileParameterConventionTest.cs (1)
61var mvcOptions = Options.Create(new MvcOptions());
ApplicationModels\ControllerActionDescriptorProviderTests.cs (5)
696var options = Options.Create(new MvcOptions()); 1150var options = Options.Create(new MvcOptions()); 1328var options = Options.Create(new MvcOptions()); 1351var options = Options.Create(new MvcOptions()); 1367var options = Options.Create(new MvcOptions());
ApplicationModels\DefaultApplicationModelProviderTest.cs (11)
24var options = new MvcOptions() 65new MvcOptions(), 119var provider = new TestApplicationModelProvider(new MvcOptions(), modelMetadataProvider); 169new MvcOptions(), 213new MvcOptions(), 258var options = new MvcOptions(); 286var options = new MvcOptions(); 314var options = new MvcOptions(); 334var options = new MvcOptions { SuppressAsyncSuffixInActionNames = false }; 354var options = new MvcOptions(); 1868: this(new MvcOptions(), new EmptyModelMetadataProvider())
ApplicationModels\EndpointMetadataProviderTest.cs (1)
242var options = Options.Create(new MvcOptions());
ApplicationModels\InferParameterBindingInfoConventionTest.cs (1)
913var mvcOptions = Options.Create(new MvcOptions());
ControllerBaseTest.cs (4)
3072new MvcOptions()); 3109new MvcOptions()); 3146new MvcOptions()); 3230ObjectValidator = new DefaultObjectValidator(metadataProvider, validatorProviders, new MvcOptions()),
Controllers\ControllerBinderDelegateProviderTest.cs (1)
25private static readonly MvcOptions _options = new MvcOptions();
Controllers\DefaultControllerActivatorTest.cs (1)
178.Returns(new DefaultObjectValidator(metadataProvider, new List<IModelValidatorProvider>(), new MvcOptions()));
Controllers\DefaultControllerFactoryTest.cs (1)
233new MvcOptions()));
CreatedAtActionResultTests.cs (1)
86var options = Options.Create(new MvcOptions());
CreatedAtRouteResultTests.cs (1)
100var options = Options.Create(new MvcOptions());
CreatedResultTests.cs (1)
133var options = Options.Create(new MvcOptions());
DependencyInjection\ApplicationModelConventionExtensionsTest.cs (4)
28var options = new MvcOptions(); 68var options = new MvcOptions(); 126var options = new MvcOptions(); 151var options = new MvcOptions();
Filters\MiddlewareFilterTest.cs (1)
264var options = new MvcOptions();
Formatters\FormatFilterTest.cs (1)
457OptionsManager = Options.Create(new MvcOptions());
HttpNotFoundObjectResultTest.cs (1)
66var options = Options.Create(new MvcOptions());
HttpOkObjectResultTest.cs (1)
68var options = Options.Create(new MvcOptions());
Infrastructure\ActionSelectorTest.cs (1)
1002var options = Options.Create(new MvcOptions());
Infrastructure\AsyncEnumerableReaderTest.cs (12)
18var options = new MvcOptions(); 33var options = new MvcOptions(); 51var options = new MvcOptions(); 69var options = new MvcOptions(); 86var options = new MvcOptions(); 103var options = new MvcOptions(); 121var options = new MvcOptions(); 138var options = new MvcOptions(); 156var options = new MvcOptions(); 178var options = new MvcOptions { MaxIAsyncEnumerableBufferLimit = 10 }; 194var options = new MvcOptions(); 207var options = new MvcOptions();
Infrastructure\ControllerActionInvokerCacheTest.cs (1)
96var mvcOptions = Options.Create(new MvcOptions());
Infrastructure\ControllerActionInvokerProviderTest.cs (2)
25var provider = CreateInvokerProvider(new MvcOptions() { MaxValidationDepth = 1, MaxModelBindingRecursionDepth = 2, MaxModelValidationErrors = 3 }); 67mvcOptions ??= new MvcOptions();
Infrastructure\ControllerActionInvokerTest.cs (1)
1705var options = Options.Create(new MvcOptions());
Infrastructure\DefaultApiProblemDetailsWriterTest.cs (1)
229var mvcOptions = Options.Create(new MvcOptions());
Infrastructure\DefaultOutputFormatterSelectorTest.cs (2)
239var options = new MvcOptions() 365var options = new MvcOptions();
Infrastructure\ObjectResultExecutorTest.cs (4)
283var options = new MvcOptions(); 376var options = new MvcOptions(); 413var options = new MvcOptions(); 479options ??= new MvcOptions();
ModelBinding\Binders\BodyModelBinderProviderTest.cs (3)
89var options = new MvcOptions { AllowEmptyInputInBodyModelBinding = true }; 112var allowEmpty = BodyModelBinderProvider.CalculateAllowEmptyBody(EmptyBodyBehavior.Allow, options: new MvcOptions()); 123var options = new MvcOptions { AllowEmptyInputInBodyModelBinding = true };
ModelBinding\Binders\BodyModelBinderTests.cs (17)
265var binder = CreateBinder(new[] { formatter }, new MvcOptions()); 288{ new XmlSerializerInputFormatter(new MvcOptions()) }, 289{ new XmlDataContractSerializerInputFormatter(new MvcOptions()) }, 308var binder = CreateBinder(new[] { formatter }, new MvcOptions()); 339new MvcOptions()); 379var binder = CreateBinder(new[] { formatter }, new MvcOptions()); 410new MvcOptions()); 455var binder = CreateBinder(new[] { formatter }, new MvcOptions()); 490var binder = CreateBinder(new[] { formatter }, new MvcOptions()); 523var binder = CreateBinder(new[] { formatter }, new MvcOptions()); 709var options = new MvcOptions(); 772: base(GetLogger(), new JsonSerializerSettings(), ArrayPool<char>.Shared, new DefaultObjectPoolProvider(), new MvcOptions(), new MvcNewtonsoftJsonOptions() 798: base(new MvcOptions()) 820: base(new MvcOptions()) 842: base(GetLogger(), new JsonSerializerSettings(), ArrayPool<char>.Shared, new DefaultObjectPoolProvider(), new MvcOptions(), new MvcNewtonsoftJsonOptions() 868: base(new MvcOptions()) 890: base(new MvcOptions())
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (1)
1086var options = Options.Create(new MvcOptions());
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (1)
1248var options = Options.Create(new MvcOptions());
ModelBinding\Binders\EnumTypeModelBinderProviderTest.cs (3)
16var provider = new EnumTypeModelBinderProvider(new MvcOptions()); 32var provider = new EnumTypeModelBinderProvider(new MvcOptions()); 49var provider = new EnumTypeModelBinderProvider(new MvcOptions());
ModelBinding\Binders\EnumTypeModelBinderTest.cs (1)
252var binderProvider = new EnumTypeModelBinderProvider(new MvcOptions());
ModelBinding\Binders\HeaderModelBinderTests.cs (1)
337var options = new MvcOptions();
ModelBinding\Metadata\DefaultModelMetadataProviderTest.cs (1)
435Options.Create(new MvcOptions()));
ModelBinding\ModelBinderFactoryTest.cs (13)
23var options = Options.Create(new MvcOptions()); 43var options = Options.Create(new MvcOptions()); 69var options = Options.Create(new MvcOptions()); 109var options = Options.Create(new MvcOptions()); 144var options = Options.Create(new MvcOptions()); 185var options = Options.Create(new MvcOptions()); 223var options = Options.Create(new MvcOptions()); 254var options = Options.Create(new MvcOptions()); 369var options = Options.Create(new MvcOptions()); 395var options = Options.Create(new MvcOptions()); 456var options = Options.Create(new MvcOptions()); 520var options = Options.Create(new MvcOptions()); 582var options = Options.Create(new MvcOptions());
ModelBinding\ModelBindingHelperTest.cs (7)
80new DefaultObjectValidator(metadataProvider, new[] { validator }, new MvcOptions())); 120new DefaultObjectValidator(metadataProvider, new[] { validator }, new MvcOptions())); 198new DefaultObjectValidator(metadataProvider, new[] { validator }, new MvcOptions()), 274new DefaultObjectValidator(metadataProvider, new[] { validator }, new MvcOptions()), 325new DefaultObjectValidator(metadataProvider, new[] { validator }, new MvcOptions())); 529new DefaultObjectValidator(metadataProvider, new[] { validator }, new MvcOptions()), 597new DefaultObjectValidator(metadataProvider, new[] { validator }, new MvcOptions()));
ModelBinding\ParameterBinderTest.cs (9)
26private static readonly IOptions<MvcOptions> _optionsAccessor = Options.Create(new MvcOptions()); 327new MvcOptions()), 382new MvcOptions()), 437new MvcOptions()), 491new MvcOptions()), 550new MvcOptions()), 612new MvcOptions()), 679new MvcOptions()), 759new MvcOptions()),
ModelBinding\TestModelBinderProviderContext.cs (1)
102var mvcOptions = new MvcOptions();
ModelBinding\Validation\DefaultObjectValidatorTests.cs (3)
17private readonly MvcOptions _options = new MvcOptions(); 1196var options = new MvcOptions(); 1471return new DefaultObjectValidator(metadataProvider, validatorProviders, new MvcOptions());
MvcOptionsTest.cs (1)
12var options = new MvcOptions();
ObjectResultTests.cs (1)
159var options = Options.Create(new MvcOptions());
RequireHttpsAttributeTests.cs (2)
168var options = Options.Create(new MvcOptions()); 235var options = Options.Create(new MvcOptions());
ResponseCacheAttributeTest.cs (1)
326var optionsAccessor = Options.Create(new MvcOptions());
Microsoft.AspNetCore.Mvc.Core.TestCommon (9)
TestModelBinderFactory.cs (2)
36var options = Options.Create(new MvcOptions()); 58var options = Options.Create(new MvcOptions());
TestModelMetadataProvider.cs (7)
21return new DataAnnotationsMetadataProvider(new MvcOptions(), localizationOptions, stringLocalizerFactory); 41return new DefaultModelMetadataProvider(compositeDetailsProvider, Options.Create(new MvcOptions())); 51new MvcOptions(), 65return new DefaultModelMetadataProvider(compositeDetailsProvider, Options.Create(new MvcOptions())); 77return new DefaultModelMetadataProvider(compositeDetailsProvider, Options.Create(new MvcOptions())); 94new MvcOptions(), 99Options.Create(new MvcOptions()))
Microsoft.AspNetCore.Mvc.Cors.Test (2)
CorsApplicationModelProviderTest.cs (2)
20private readonly IOptions<MvcOptions> OptionsWithoutEndpointRouting = Options.Create(new MvcOptions { EnableEndpointRouting = false }); 215Options.Create(new MvcOptions()),
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (4)
DataAnnotationsMetadataProviderTest.cs (2)
1198var provider = CreateProvider(options: new MvcOptions() 1701options ?? new MvcOptions(),
ModelMetadataProviderTest.cs (2)
1050new MvcOptions(), 1054Options.Create(new MvcOptions()))
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (57)
DependencyInjection\XmlDataContractSerializerMvcOptionsSetupTest.cs (4)
17var options = new MvcOptions(); 32var options = new MvcOptions(); 48var options = new MvcOptions(); 62var options = new MvcOptions();
DependencyInjection\XmlSerializerMvcOptionsSetupTest.cs (4)
17var options = new MvcOptions(); 32var options = new MvcOptions(); 48var options = new MvcOptions(); 62var options = new MvcOptions();
XmlDataContractSerializerInputFormatterTest.cs (25)
70var formatter = new XmlDataContractSerializerInputFormatter(new MvcOptions()); 113var formatter = new XmlDataContractSerializerInputFormatter(new MvcOptions()); 126var formatter = new XmlDataContractSerializerInputFormatter(new MvcOptions()); 144var formatter = new XmlDataContractSerializerInputFormatter(new MvcOptions()); 176var formatter = new XmlDataContractSerializerInputFormatter(new MvcOptions()); 208var formatter = new XmlDataContractSerializerInputFormatter(new MvcOptions { SuppressInputFormatterBuffering = true }); 243var formatter = new XmlDataContractSerializerInputFormatter(new MvcOptions()); 276new MvcOptions() { SuppressInputFormatterBuffering = true }); 307var formatter = new XmlDataContractSerializerInputFormatter(new MvcOptions()); 334var mvcOptions = new MvcOptions() { SuppressInputFormatterBuffering = false }; 373var formatter = new XmlDataContractSerializerInputFormatter(new MvcOptions()); 398var formatter = new XmlDataContractSerializerInputFormatter(new MvcOptions()); 420var formatter = new XmlDataContractSerializerInputFormatter(new MvcOptions()); 436var formatter = new XmlDataContractSerializerInputFormatter(new MvcOptions()); 449var formatter = new XmlDataContractSerializerInputFormatter(new MvcOptions()); 461var formatter = new XmlDataContractSerializerInputFormatter(new MvcOptions()); 490var formatter = new XmlDataContractSerializerInputFormatter(new MvcOptions()); 508var formatter = new XmlDataContractSerializerInputFormatter(new MvcOptions()); 545var formatter = new XmlDataContractSerializerInputFormatter(new MvcOptions()); 571var formatter = new XmlDataContractSerializerInputFormatter(new MvcOptions()); 610var formatter = new XmlDataContractSerializerInputFormatter(new MvcOptions()); 639var formatter = new XmlDataContractSerializerInputFormatter(new MvcOptions()) 669var formatter = new XmlDataContractSerializerInputFormatter(new MvcOptions()); 698var formatter = new XmlDataContractSerializerInputFormatter(new MvcOptions()) 758: base(new MvcOptions())
XmlDataContractSerializerOutputFormatterTest.cs (1)
808.AddSingleton(Options.Create(new MvcOptions()))
XmlSerializerInputFormatterTest.cs (22)
49var formatter = new XmlSerializerInputFormatter(new MvcOptions()); 86var formatter = new XmlSerializerInputFormatter(new MvcOptions { SuppressInputFormatterBuffering = true }); 123var formatter = new XmlSerializerInputFormatter(new MvcOptions()); 159var formatter = new XmlSerializerInputFormatter(new MvcOptions() { SuppressInputFormatterBuffering = true }); 198var mvcOptions = new MvcOptions(); 248var formatter = new XmlSerializerInputFormatter(new MvcOptions()); 276var formatter = new XmlSerializerInputFormatter(new MvcOptions()); 310var formatter = new XmlSerializerInputFormatter(new MvcOptions()); 323var formatter = new XmlSerializerInputFormatter(new MvcOptions()); 343var formatter = new XmlSerializerInputFormatter(new MvcOptions()); 377var formatter = new XmlSerializerInputFormatter(new MvcOptions()); 405var formatter = new XmlSerializerInputFormatter(new MvcOptions()); 432var formatter = new XmlSerializerInputFormatter(new MvcOptions()); 453var formatter = new XmlSerializerInputFormatter(new MvcOptions()); 466var formatter = new XmlSerializerInputFormatter(new MvcOptions()); 478var formatter = new XmlSerializerInputFormatter(new MvcOptions()); 510var formatter = new XmlSerializerInputFormatter(new MvcOptions()); 529var formatter = new XmlSerializerInputFormatter(new MvcOptions()); 565var formatter = new XmlSerializerInputFormatter(new MvcOptions()); 593var formatter = new XmlSerializerInputFormatter(new MvcOptions()); 631var formatter = new XmlSerializerInputFormatter(new MvcOptions()); 693: base(new MvcOptions())
XmlSerializerOutputFormatterTest.cs (1)
590.AddSingleton(Options.Create(new MvcOptions()))
Microsoft.AspNetCore.Mvc.IntegrationTests (7)
AuthorizeFilterIntegrationTest.cs (1)
169Options.Create(new MvcOptions()),
BindingSourceMetadataProviderIntegrationTest.cs (2)
19var options = new MvcOptions(); 73var options = new MvcOptions();
ExcludeBindingMetadataProviderIntegrationTest.cs (2)
18var options = new MvcOptions(); 64var options = new MvcOptions();
ModelBindingTestHelper.cs (1)
131options?.Value ?? new MvcOptions());
TestMvcOptions.cs (1)
19Value = new MvcOptions();
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (36)
JsonResultTest.cs (1)
47Options.Create(new MvcOptions()),
NewtonsoftJsonInputFormatterTest.cs (12)
34new MvcOptions(), 61var mvcOptions = new MvcOptions() 97var mvcOptions = new MvcOptions() 319new MvcOptions(), 354new MvcOptions(), 385new MvcOptions(), 416new MvcOptions(), 445new MvcOptions(), 493new MvcOptions(), 541new MvcOptions(), 566: base(GetLogger(), settings, ArrayPool<char>.Shared, objectPoolProvider, new MvcOptions(), new MvcNewtonsoftJsonOptions()) 590new MvcOptions(),
NewtonsoftJsonOutputFormatterTest.cs (7)
22return new NewtonsoftJsonOutputFormatter(new JsonSerializerSettings(), ArrayPool<char>.Shared, new MvcOptions(), new MvcNewtonsoftJsonOptions()); 76var jsonFormatter = new NewtonsoftJsonOutputFormatter(settings, ArrayPool<char>.Shared, new MvcOptions()); 106var jsonFormatter = new NewtonsoftJsonOutputFormatter(settings, ArrayPool<char>.Shared, new MvcOptions(), new MvcNewtonsoftJsonOptions() 133var jsonFormatter = new NewtonsoftJsonOutputFormatter(settings, ArrayPool<char>.Shared, new MvcOptions(), new MvcNewtonsoftJsonOptions()); 351var formatter = new NewtonsoftJsonOutputFormatter(new JsonSerializerSettings(), ArrayPool<char>.Shared, new MvcOptions(), new MvcNewtonsoftJsonOptions()); 382var formatter = new NewtonsoftJsonOutputFormatter(new JsonSerializerSettings(), ArrayPool<char>.Shared, new MvcOptions(), new MvcNewtonsoftJsonOptions()); 555: base(serializerSettings, ArrayPool<char>.Shared, new MvcOptions(), new MvcNewtonsoftJsonOptions())
NewtonsoftJsonPatchInputFormatterTest.cs (3)
32new MvcOptions(), 60var mvcOptions = new MvcOptions() 234new MvcOptions(),
NewtonsoftJsonResultExecutorTest.cs (1)
21Options.Create(new MvcOptions()),
src\Mvc\Mvc.Core\test\Infrastructure\AsyncEnumerableReaderTest.cs (12)
18var options = new MvcOptions(); 33var options = new MvcOptions(); 51var options = new MvcOptions(); 69var options = new MvcOptions(); 86var options = new MvcOptions(); 103var options = new MvcOptions(); 121var options = new MvcOptions(); 138var options = new MvcOptions(); 156var options = new MvcOptions(); 178var options = new MvcOptions { MaxIAsyncEnumerableBufferLimit = 10 }; 194var options = new MvcOptions(); 207var options = new MvcOptions();
Microsoft.AspNetCore.Mvc.RazorPages.Test (18)
ApplicationModels\AuthorizationPageApplicationModelProviderTest.cs (2)
17private readonly IOptions<MvcOptions> OptionsWithoutEndpointRouting = Options.Create(new MvcOptions { EnableEndpointRouting = false }); 58var authorizationProvider = new AuthorizationPageApplicationModelProvider(policyProvider, Options.Create(new MvcOptions()));
ApplicationModels\ResponseCacheFilterApplicationModelProviderTest.cs (3)
22var options = Options.Create(new MvcOptions()); 56var options = Options.Create(new MvcOptions()); 98var options = Options.Create(new MvcOptions());
DependencyInjection\PageConventionCollectionExtensionsTest.cs (1)
978var options = new MvcOptions { EnableEndpointRouting = enableEndpointRouting };
Infrastructure\DefaultPageLoaderTest.cs (6)
37var mvcOptions = Options.Create(new MvcOptions()); 120var mvcOptions = Options.Create(new MvcOptions()); 160var mvcOptions = Options.Create(new MvcOptions()); 237var mvcOptions = Options.Create(new MvcOptions()); 299var mvcOptions = Options.Create(new MvcOptions()); 336var mvcOptions = Options.Create(new MvcOptions());
Infrastructure\PageActionInvokerProviderTest.cs (3)
257mvcOptions: new MvcOptions { EnableEndpointRouting = true }); 291mvcOptions: new MvcOptions { EnableEndpointRouting = false }); 506mvcOptions = mvcOptions ?? new MvcOptions();
Infrastructure\PageBinderFactoryTest.cs (3)
20private static readonly MvcOptions _options = new MvcOptions(); 548new MvcOptions()), 672new MvcOptions()),
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (9)
ControllerTest.cs (1)
455ObjectValidator = new DefaultObjectValidator(metadataProvider, validatorProviders, new MvcOptions()),
Filters\AntiforgeryApplicationModelProviderTest.cs (6)
18Options.Create(new MvcOptions()), 52Options.Create(new MvcOptions()), 79Options.Create(new MvcOptions()), 103Options.Create(new MvcOptions()), 131Options.Create(new MvcOptions()), 145Options.Create(new MvcOptions()),
Filters\TempDataApplicationModelProviderTest.cs (1)
115Options.Create(new MvcOptions()),
Filters\ViewDataAttributeApplicationModelProviderTest.cs (1)
68Options.Create(new MvcOptions()),
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiDocumentServiceTestsBase.cs (1)
59var options = new MvcOptions