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