2 implementations of IView
Microsoft.AspNetCore.Mvc.Razor (1)
RazorView.cs (1)
19public class RazorView : IView
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
NullView.cs (1)
9internal sealed class NullView : IView
199 references to IView
Microsoft.AspNetCore.Mvc.Localization.Test (10)
ViewLocalizerTest.cs (10)
33var view = new Mock<IView>(); 68var view = new Mock<IView>(); 100var view = new Mock<IView>(); 124var view = new Mock<IView>(); 149var view = new Mock<IView>(); 175var view = new Mock<IView>(); 199var view = new Mock<IView>(); 223var view = new Mock<IView>(); 247var view = new Mock<IView>(); 271var view = new Mock<IView>();
Microsoft.AspNetCore.Mvc.Razor (1)
RazorView.cs (1)
15/// Default implementation for <see cref="IView"/> that executes one or more <see cref="IRazorPage"/>
Microsoft.AspNetCore.Mvc.Razor.Test (8)
DefaultTagHelperFactoryTest.cs (1)
160Mock.Of<IView>(),
Infrastructure\DefaultTagHelperActivatorTest.cs (1)
46Mock.Of<IView>(),
RazorPageActivatorTest.cs (1)
262Mock.Of<IView>(),
RazorPageCreateTagHelperTest.cs (1)
97Mock.Of<IView>(),
RazorPageTest.cs (1)
1423var viewMock = new Mock<IView>();
RazorViewEngineTest.cs (3)
715Assert.IsAssignableFrom<IView>(result.View); 783Assert.IsAssignableFrom<IView>(result.View); 816Assert.IsAssignableFrom<IView>(result.View);
Microsoft.AspNetCore.Mvc.TagHelpers (1)
PartialTagHelper.cs (1)
198private async Task RenderPartialViewAsync(TextWriter writer, object model, IView view)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (29)
CacheTagHelperTest.cs (1)
934Mock.Of<IView>(),
CacheTagKeyTest.cs (1)
542Mock.Of<IView>(),
DistributedCacheTagHelperTest.cs (1)
740Mock.Of<IView>(),
FormTagHelperTest.cs (1)
1163Mock.Of<IView>(),
ImageTagHelperTest.cs (1)
303Mock.Of<IView>(),
LinkTagHelperTest.cs (1)
1134Mock.Of<IView>(),
PartialTagHelperTest.cs (19)
158var view = new Mock<IView>(); 196var view = new Mock<IView>(); 237var view = new Mock<IView>(); 281var view = new Mock<IView>(); 328var view = new Mock<IView>(); 375var view = new Mock<IView>(); 422var view = new Mock<IView>(); 462var view = new Mock<IView>(); 502var view = new Mock<IView>(); 540var view = disposable.As<IView>(); 581var view = Mock.Of<IView>(); 615var view = new Mock<IView>(); 657var view = new Mock<IView>(); 665var fallbackView = new Mock<IView>(); 718var view = Mock.Of<IView>(); 759var view = new Mock<IView>(); 803var view = new Mock<IView>();
ScriptTagHelperTest.cs (1)
1115Mock.Of<IView>(),
TestableHtmlGenerator.cs (1)
85Mock.Of<IView>(),
ValidationMessageTagHelperTest.cs (1)
472Mock.Of<IView>(),
ValidationSummaryTagHelperTest.cs (1)
656Mock.Of<IView>(),
Microsoft.AspNetCore.Mvc.ViewFeatures (58)
Diagnostics\MvcDiagnostics.cs (20)
136/// <param name="view">The <see cref="IView"/>.</param> 137public ViewComponentBeforeViewExecuteEventData(ActionDescriptor actionDescriptor, ViewComponentContext viewComponentContext, IView view) 154/// The <see cref="IView"/>. 156public IView View { get; } 186/// <param name="view">The <see cref="IView"/>.</param> 187public ViewComponentAfterViewExecuteEventData(ActionDescriptor actionDescriptor, ViewComponentContext viewComponentContext, IView view) 205/// The <see cref="IView"/>. 207public IView View { get; } 235/// <param name="view">The <see cref="IView"/>.</param> 237public BeforeViewEventData(IView view, ViewContext viewContext) 244/// The <see cref="IView"/>. 246public IView View { get; } 278/// <param name="view">The <see cref="IView"/>.</param> 280public AfterViewEventData(IView view, ViewContext viewContext) 287/// The <see cref="IView"/>. 289public IView View { get; } 329/// <param name="view">The <see cref="IView"/>.</param> 330public ViewFoundEventData(ActionContext actionContext, bool isMainPage, ActionResult result, string viewName, IView view) 360/// The <see cref="IView"/>. 362public IView View { get; }
HtmlHelper.cs (1)
540var view = viewEngineResult.View;
MvcViewFeaturesDiagnosticListenerExtensions.cs (10)
71IView view) 80private static void ViewComponentBeforeViewExecuteImpl(DiagnosticListener diagnosticListener, ViewComponentContext context, IView view) 97IView view) 106private static void ViewComponentAfterViewExecuteImpl(DiagnosticListener diagnosticListener, ViewComponentContext context, IView view) 122IView view, 132private static void BeforeViewImpl(DiagnosticListener diagnosticListener, IView view, ViewContext viewContext) 144IView view, 154private static void AfterViewImpl(DiagnosticListener diagnosticListener, IView view, ViewContext viewContext) 170IView view) 179private static void ViewFoundImpl(DiagnosticListener diagnosticListener, ActionContext actionContext, bool isMainPage, ActionResult viewResult, string viewName, IView view)
PartialViewResultExecutor.cs (7)
19/// Finds and executes an <see cref="IView"/> for a <see cref="PartialViewResult"/>. 56/// Attempts to find the <see cref="IView"/> associated with <paramref name="viewResult"/>. 123/// Executes the <see cref="IView"/> asynchronously. 126/// <param name="view">The <see cref="IView"/>.</param> 129public virtual Task ExecuteAsync(ActionContext actionContext, IView view, PartialViewResult viewResult) 155var view = viewEngineResult.View; 198public static void PartialViewFound(ILogger logger, IView view, TimeSpan timespan)
Rendering\ViewContext.cs (6)
42/// <param name="view">The <see cref="IView"/> being rendered.</param> 49IView view, 81/// <param name="view">The <see cref="IView"/> being rendered.</param> 86IView view, 176/// Gets or sets the <see cref="IView"/> currently being rendered, if any. 178public IView View { get; set; }
TemplateRenderer.cs (1)
119var view = viewEngineResult.View;
ViewComponents\ViewViewComponentResult.cs (1)
108var view = result.EnsureSuccessful(originalLocations).View!;
ViewEngines\ViewEngineResult.cs (4)
28/// The <see cref="IView"/>. 30public IView? View { get; private init; } 66/// <param name="view">The <see cref="IView"/>.</param> 68public static ViewEngineResult Found(string viewName, IView view)
ViewExecutor.cs (4)
20/// Executes an <see cref="IView"/>. 110/// <param name="view">The <see cref="IView"/>.</param> 123IView view, 208var view = viewContext.View;
ViewResultExecutor.cs (4)
19/// Finds and executes an <see cref="IView"/> for a <see cref="ViewResult"/>. 56/// Attempts to find the <see cref="IView"/> associated with <paramref name="viewResult"/>. 149var view = viewEngineResult.View; 198public static void ViewFound(ILogger logger, IView view, TimeSpan timespan)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (92)
DefaultDisplayTemplatesTest.cs (2)
349var view = new Mock<IView>(); 380.Returns(ViewEngineResult.Found(string.Empty, new Mock<IView>().Object))
DefaultEditorTemplatesTest.cs (2)
1297var view = new Mock<IView>(); 1328.Returns(ViewEngineResult.Found(string.Empty, new Mock<IView>().Object))
DefaultHtmlGeneratorTest.cs (1)
1041Mock.Of<IView>(),
DefaultValidationHtmlAttributeProviderTest.cs (1)
261Mock.Of<IView>(),
PartialViewResultExecutorTest.cs (4)
36.Returns(ViewEngineResult.Found(viewName, Mock.Of<IView>())) 298await executor.ExecuteAsync(context, Mock.Of<IView>(), viewResult); 327await executor.ExecuteAsync(context, Mock.Of<IView>(), viewResult); 356(context, name, isMainPage) => ViewEngineResult.Found(name, Mock.Of<IView>()));
PartialViewResultTest.cs (1)
183var view = new Mock<IView>(MockBehavior.Strict);
Rendering\DefaultTemplatesUtilities.cs (2)
290Mock.Of<IView>(), 305var view = new Mock<IView>();
Rendering\HtmlHelperDisplayExtensionsTest.cs (16)
50var view = new Mock<IView>(); 81.Returns(ViewEngineResult.Found("SomeView", Mock.Of<IView>())) 133var view = new Mock<IView>(); 159var view = new Mock<IView>(); 185var view = new Mock<IView>(); 213var view = new Mock<IView>(); 241var view = new Mock<IView>(); 272.Returns(ViewEngineResult.Found("SomeView", Mock.Of<IView>())) 288var view = new Mock<IView>(); 319var view = new Mock<IView>(); 360var view = new Mock<IView>(); 385var view = new Mock<IView>(); 413var view = new Mock<IView>(); 444.Returns(ViewEngineResult.Found("SomeView", Mock.Of<IView>())) 460var view = new Mock<IView>(); 487var view = new Mock<IView>();
Rendering\HtmlHelperEditorExtensionsTest.cs (2)
17var view = new Mock<IView>(); 43var view = new Mock<IView>();
Rendering\ViewContextTests.cs (4)
24view: Mock.Of<IView>(), 51view: Mock.Of<IView>(), 56var view = Mock.Of<IView>();
ViewComponents\ContentViewComponentResultTest.cs (2)
27var viewComponentContext = GetViewComponentContext(Mock.Of<IView>(), buffer); 37private static ViewComponentContext GetViewComponentContext(IView view, Stream stream)
ViewComponents\HtmlContentViewComponentResultTest.cs (2)
26var viewComponentContext = GetViewComponentContext(Mock.Of<IView>(), buffer); 38private static ViewComponentContext GetViewComponentContext(IView view, Stream stream)
ViewComponents\ViewViewComponentResultTest.cs (23)
29var view = new Mock<IView>(); 68var view = new Mock<IView>(MockBehavior.Strict); 102var view = new Mock<IView>(MockBehavior.Strict); 150var view = Mock.Of<IView>(); 188var view = Mock.Of<IView>(); 228var view = Mock.Of<IView>(); 263var view = new Mock<IView>(); 302var view = Mock.Of<IView>(); 337var view = Mock.Of<IView>(); 386var view = Mock.Of<IView>(); 425var view = Mock.Of<IView>(); 455var componentContext = GetViewComponentContext(new Mock<IView>().Object, viewData); 461.Returns(ViewEngineResult.Found(expectedViewName, new Mock<IView>().Object)) 485.Returns(ViewEngineResult.Found(viewName, new Mock<IView>().Object)) 488var componentContext = GetViewComponentContext(new Mock<IView>().Object, viewData); 503IView view,
ViewEngines\CompositeViewEngineTest.cs (18)
76var view = Mock.Of<IView>(); 100var view2 = Mock.Of<IView>(); 101var view3 = Mock.Of<IView>(); 211var view = Mock.Of<IView>(); 238var view2 = Mock.Of<IView>(); 239var view3 = Mock.Of<IView>(); 343var view = Mock.Of<IView>(); 367var view2 = Mock.Of<IView>(); 368var view3 = Mock.Of<IView>();
ViewExecutorTest.cs (9)
85var view = CreateView((v) => 127var view = CreateView(async (v) => 178var view = CreateView(async (v) => 219var view = CreateView(async (v) => 254var view = CreateView(async (v) => 300var view = new Mock<IView>(); 339var view = CreateView(async (v) => 380private IView CreateView(Func<ViewContext, Task> action) 382var view = new Mock<IView>(MockBehavior.Strict);
ViewResultExecutorTest.cs (2)
35.Returns(ViewEngineResult.Found(viewName, Mock.Of<IView>())) 346(context, name, partial) => ViewEngineResult.Found(name, Mock.Of<IView>()));
ViewResultTest.cs (1)
195var view = new Mock<IView>(MockBehavior.Strict);