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