30 instantiations of MvcViewOptions
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\PageActionInvokerProviderTest.cs (1)
530Options.Create(new MvcViewOptions()),
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
TestableHtmlGenerator.cs (1)
124.Returns(new MvcViewOptions());
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (27)
DefaultHtmlGeneratorTest.cs (3)
364var htmlGenerator = GetGenerator(metadataProvider, new() { HtmlHelperOptions = htmlHelperOptions }); 394var htmlGenerator = GetGenerator(metadataProvider, new() { HtmlHelperOptions = htmlHelperOptions }); 1005mvcViewOptionsAccessor.SetupGet(accessor => accessor.Value).Returns(options ?? new MvcViewOptions());
DefaultValidationHtmlAttributeProviderTest.cs (1)
271var mvcViewOptions = new MvcViewOptions();
PartialViewResultExecutorTest.cs (1)
358var options = Options.Create(new MvcViewOptions());
PartialViewResultTest.cs (1)
233var options = Options.Create(new MvcViewOptions());
Rendering\DefaultTemplatesUtilities.cs (1)
231var options = new MvcViewOptions();
ViewComponentResultTest.cs (1)
664services.AddSingleton(Options.Create(new MvcViewOptions()));
ViewEngines\CompositeViewEngineTest.cs (16)
20var optionsAccessor = Options.Create(new MvcViewOptions()); 40var optionsAccessor = Options.Create(new MvcViewOptions()); 58var optionsAccessor = Options.Create(new MvcViewOptions()); 80var optionsAccessor = Options.Create(new MvcViewOptions()); 112var optionsAccessor = Options.Create(new MvcViewOptions()); 145var optionsAccessor = Options.Create(new MvcViewOptions()); 168var optionsAccessor = Options.Create(new MvcViewOptions()); 190var optionsAccessor = Options.Create(new MvcViewOptions()); 215var optionsAccessor = Options.Create(new MvcViewOptions()); 250var optionsAccessor = Options.Create(new MvcViewOptions()); 286var optionsAccessor = Options.Create(new MvcViewOptions()); 307var optionsAccessor = Options.Create(new MvcViewOptions()); 325var optionsAccessor = Options.Create(new MvcViewOptions()); 347var optionsAccessor = Options.Create(new MvcViewOptions()); 379var optionsAccessor = Options.Create(new MvcViewOptions()); 412var optionsAccessor = Options.Create(new MvcViewOptions());
ViewExecutorTest.cs (1)
398Options.Create(new MvcViewOptions()),
ViewResultExecutorTest.cs (1)
348var options = Options.Create(new MvcViewOptions());
ViewResultTest.cs (1)
245var options = Options.Create(new MvcViewOptions());
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
HtmlGeneratorUtilities.cs (1)
18var options = new MvcViewOptions();
60 references to MvcViewOptions
Microsoft.AspNetCore.Mvc.Razor (5)
DependencyInjection\MvcRazorMvcCoreBuilderExtensions.cs (1)
126ServiceDescriptor.Transient<IConfigureOptions<MvcViewOptions>, MvcRazorMvcViewOptionsSetup>());
DependencyInjection\MvcRazorMvcViewOptionsSetup.cs (4)
11/// Configures <see cref="MvcViewOptions"/> to use <see cref="RazorViewEngine"/>. 13internal sealed class MvcRazorMvcViewOptionsSetup : IConfigureOptions<MvcViewOptions> 31/// <param name="options">The <see cref="MvcViewOptions"/> to configure.</param> 32public void Configure(MvcViewOptions options)
Microsoft.AspNetCore.Mvc.RazorPages (5)
Infrastructure\PageActionInvokerProvider.cs (2)
23private readonly MvcViewOptions _mvcViewOptions; 36IOptions<MvcViewOptions> mvcViewOptions,
Infrastructure\PageRequestDelegateFactory.cs (3)
24private readonly MvcViewOptions _mvcViewOptions; 37IOptions<MvcViewOptions> mvcViewOptions, 51IOptions<MvcViewOptions> mvcViewOptions,
Microsoft.AspNetCore.Mvc.TagHelpers.Test (3)
TestableHtmlGenerator.cs (3)
41IOptions<MvcViewOptions> options, 119private static IOptions<MvcViewOptions> GetOptions() 121var mockOptions = new Mock<IOptions<MvcViewOptions>>();
Microsoft.AspNetCore.Mvc.Test (5)
MvcOptionsSetupTest.cs (4)
32var options = GetOptions<MvcViewOptions>(AddViewEngineOptionsServices); 137var options = GetOptions<MvcViewOptions>(AddViewEngineOptionsServices);
MvcServiceCollectionExtensionsTest.cs (1)
503typeof(IConfigureOptions<MvcViewOptions>),
Microsoft.AspNetCore.Mvc.ViewFeatures (27)
DefaultHtmlGenerator.cs (2)
50/// <param name="optionsAccessor">The accessor for <see cref="MvcViewOptions"/>.</param> 57IOptions<MvcViewOptions> optionsAccessor,
DefaultValidationHtmlAttributeProvider.cs (2)
23/// <param name="optionsAccessor">The accessor for <see cref="MvcViewOptions"/>.</param> 28IOptions<MvcViewOptions> optionsAccessor,
DependencyInjection\MvcViewFeaturesMvcBuilderExtensions.cs (3)
18/// Adds configuration of <see cref="MvcViewOptions"/> for the application. 22/// An <see cref="Action{MvcViewOptions}"/> to configure the provided <see cref="MvcViewOptions"/>. 27Action<MvcViewOptions> setupAction)
DependencyInjection\MvcViewFeaturesMvcCoreBuilderExtensions.cs (5)
74/// <param name="setupAction">The setup action for <see cref="MvcViewOptions"/>.</param> 78Action<MvcViewOptions> setupAction) 113/// Configures <see cref="MvcViewOptions"/>. 120Action<MvcViewOptions> setupAction) 137ServiceDescriptor.Transient<IConfigureOptions<MvcViewOptions>, MvcViewOptionsSetup>());
DependencyInjection\MvcViewOptionsSetup.cs (3)
12/// Sets up default options for <see cref="MvcViewOptions"/>. 14internal sealed class MvcViewOptionsSetup : IConfigureOptions<MvcViewOptions> 42public void Configure(MvcViewOptions options)
PartialViewResultExecutor.cs (1)
36IOptions<MvcViewOptions> viewOptions,
ViewComponentResultExecutor.cs (1)
45IOptions<MvcViewOptions> mvcHelperOptions,
ViewEngines\CompositeViewEngine.cs (6)
18/// <param name="optionsAccessor">The options accessor for <see cref="MvcViewOptions"/>.</param> 19public CompositeViewEngine(IOptions<MvcViewOptions> optionsAccessor) 36typeof(MvcViewOptions).FullName, 37nameof(MvcViewOptions.ViewEngines), 85typeof(MvcViewOptions).FullName, 86nameof(MvcViewOptions.ViewEngines),
ViewExecutor.cs (3)
39IOptions<MvcViewOptions> viewOptions, 92/// Gets the <see cref="MvcViewOptions"/>. 94protected MvcViewOptions? ViewOptions { get; }
ViewResultExecutor.cs (1)
36IOptions<MvcViewOptions> viewOptions,
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (11)
DefaultHtmlGeneratorTest.cs (2)
1002private static IHtmlGenerator GetGenerator(IModelMetadataProvider metadataProvider, MvcViewOptions options = default) 1004var mvcViewOptionsAccessor = new Mock<IOptions<MvcViewOptions>>();
DefaultValidationHtmlAttributeProviderTest.cs (2)
271var mvcViewOptions = new MvcViewOptions(); 274var mvcViewOptionsAccessor = new Mock<IOptions<MvcViewOptions>>();
Rendering\DefaultTemplatesUtilities.cs (1)
231var options = new MvcViewOptions();
ViewEngines\CompositeViewEngineTest.cs (6)
36var expected = $"'{typeof(MvcViewOptions).FullName}.{nameof(MvcViewOptions.ViewEngines)}' must not be " + 165var expected = $"'{typeof(MvcViewOptions).FullName}.{nameof(MvcViewOptions.ViewEngines)}' must not be " + 304var expected = $"'{typeof(MvcViewOptions).FullName}.{nameof(MvcViewOptions.ViewEngines)}' must not be " +
Microsoft.AspNetCore.Mvc.Views.TestCommon (3)
HtmlGeneratorUtilities.cs (3)
18var options = new MvcViewOptions(); 27public static IHtmlGenerator GetHtmlGenerator(IModelMetadataProvider provider, IUrlHelperFactory urlHelperFactory, MvcViewOptions options) 29var optionsAccessor = new Mock<IOptions<MvcViewOptions>>();
RazorPagesWebSite (1)
StartupWithClientValidationDisabled.cs (1)
21services.Configure<MvcViewOptions>(o => o.HtmlHelperOptions.ClientValidationEnabled = false);