36 references to ViewEngines
Microsoft.AspNetCore.Mvc.Razor (1)
DependencyInjection\MvcRazorMvcViewOptionsSetup.cs (1)
36options.ViewEngines.Add(_razorViewEngine);
Microsoft.AspNetCore.Mvc.Test (1)
MvcOptionsSetupTest.cs (1)
35var viewEngine = Assert.Single(options.ViewEngines);
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
ViewEngines\CompositeViewEngine.cs (3)
21ViewEngines = optionsAccessor.Value.ViewEngines.ToArray(); 37nameof(MvcViewOptions.ViewEngines), 86nameof(MvcViewOptions.ViewEngines),
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (31)
PartialViewResultExecutorTest.cs (1)
359options.Value.ViewEngines.Add(viewEngine.Object);
ViewEngines\CompositeViewEngineTest.cs (29)
21optionsAccessor.Value.ViewEngines.Add(viewEngine1); 22optionsAccessor.Value.ViewEngines.Add(viewEngine2); 36var expected = $"'{typeof(MvcViewOptions).FullName}.{nameof(MvcViewOptions.ViewEngines)}' must not be " + 59optionsAccessor.Value.ViewEngines.Add(engine.Object); 81optionsAccessor.Value.ViewEngines.Add(engine.Object); 113optionsAccessor.Value.ViewEngines.Add(engine1.Object); 114optionsAccessor.Value.ViewEngines.Add(engine2.Object); 115optionsAccessor.Value.ViewEngines.Add(engine3.Object); 146optionsAccessor.Value.ViewEngines.Add(engine1.Object); 147optionsAccessor.Value.ViewEngines.Add(engine2.Object); 148optionsAccessor.Value.ViewEngines.Add(engine3.Object); 165var expected = $"'{typeof(MvcViewOptions).FullName}.{nameof(MvcViewOptions.ViewEngines)}' must not be " + 191optionsAccessor.Value.ViewEngines.Add(engine.Object); 216optionsAccessor.Value.ViewEngines.Add(engine.Object); 251optionsAccessor.Value.ViewEngines.Add(engine1.Object); 252optionsAccessor.Value.ViewEngines.Add(engine2.Object); 253optionsAccessor.Value.ViewEngines.Add(engine3.Object); 287optionsAccessor.Value.ViewEngines.Add(engine1.Object); 288optionsAccessor.Value.ViewEngines.Add(engine2.Object); 289optionsAccessor.Value.ViewEngines.Add(engine3.Object); 304var expected = $"'{typeof(MvcViewOptions).FullName}.{nameof(MvcViewOptions.ViewEngines)}' must not be " + 326optionsAccessor.Value.ViewEngines.Add(engine.Object); 348optionsAccessor.Value.ViewEngines.Add(engine.Object); 380optionsAccessor.Value.ViewEngines.Add(engine1.Object); 381optionsAccessor.Value.ViewEngines.Add(engine2.Object); 382optionsAccessor.Value.ViewEngines.Add(engine3.Object); 413optionsAccessor.Value.ViewEngines.Add(engine1.Object); 414optionsAccessor.Value.ViewEngines.Add(engine2.Object); 415optionsAccessor.Value.ViewEngines.Add(engine3.Object);
ViewResultExecutorTest.cs (1)
349options.Value.ViewEngines.Add(viewEngine.Object);