Base:
property
ViewContext
Microsoft.AspNetCore.Mvc.Razor.RazorPageBase.ViewContext
8 writes to ViewContext
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\DefaultPageFactoryProvider.cs (1)
64
page.
ViewContext
= viewContext;
Microsoft.AspNetCore.Mvc.RazorPages.Test (7)
Infrastructure\PageActionInvokerTest.cs (1)
1525
instance.
ViewContext
= viewContext;
PageTest.cs (6)
38
ViewContext
= viewContext,
1716
ViewContext
= new ViewContext
1741
ViewContext
= new ViewContext
1766
ViewContext
= new ViewContext
1788
ViewContext
= new ViewContext
1810
ViewContext
= new ViewContext
18 references to ViewContext
Microsoft.AspNetCore.Mvc.RazorPages (4)
Infrastructure\PageResultExecutor.cs (1)
69
var viewContext = result.Page.
ViewContext
;
PageBase.cs (3)
1185
var viewData = new ViewDataDictionary(MetadataProvider,
ViewContext
.ViewData.ModelState)
1241
ViewData =
ViewContext
.ViewData,
1263
ViewData =
ViewContext
.ViewData,
Microsoft.AspNetCore.Mvc.RazorPages.Test (14)
Infrastructure\PageActionInvokerTest.cs (13)
200
Assert.IsType<ViewDataDictionary<TestPage>>(page.
ViewContext
.ViewData);
201
Assert.Same(page, page.
ViewContext
.ViewData.Model);
206
Assert.Same(page.
ViewContext
.ViewData, pageResult.ViewData);
262
Assert.Same(page.
ViewContext
.ViewData, pageResult.ViewData);
349
Assert.Equal(relativePath, page.
ViewContext
.ExecutingFilePath);
582
Assert.NotNull(pageResult.Page.
ViewContext
);
616
Assert.NotNull(pageResult.Page.
ViewContext
);
651
Assert.NotNull(pageResult.Page.
ViewContext
);
685
Assert.NotNull(pageResult.Page.
ViewContext
);
720
Assert.NotNull(pageResult.Page.
ViewContext
);
754
Assert.NotNull(pageResult.Page.
ViewContext
);
790
Assert.NotNull(pageResult.Page.
ViewContext
);
825
Assert.NotNull(pageResult.Page.
ViewContext
);
PageTest.cs (1)
43
Assert.Same(viewContext, page.
ViewContext
);