11 writes to PageContext
Microsoft.AspNetCore.Mvc.RazorPages.Test (11)
Infrastructure\PageActionInvokerTest.cs (1)
309
modelFactory: context => new TestPageModel() {
PageContext
= context });
PageModelTest.cs (10)
1448
PageContext
= new PageContext
1474
PageContext
= new PageContext
1739
PageContext
= pageContext,
1761
PageContext
= new PageContext
1803
PageContext
= pageContext,
1831
PageContext
= new PageContext()
1943
PageContext
= new PageContext
1967
PageContext
= new PageContext
1991
PageContext
= new PageContext
2013
PageContext
= new PageContext
25 references to PageContext
Microsoft.AspNetCore.Mvc.RazorPages (21)
PageModel.cs (21)
61
public HttpContext HttpContext =>
PageContext
.HttpContext;
76
public RouteData RouteData =>
PageContext
.RouteData;
81
public ModelStateDictionary ModelState =>
PageContext
.ModelState;
121
_urlHelper = factory?.GetUrlHelper(
PageContext
);
150
public ViewDataDictionary ViewData =>
PageContext
?.ViewData!;
207
var (success, valueProvider) = await CompositeValueProvider.TryCreateAsync(
PageContext
,
PageContext
.ValueProviderFactories);
239
PageContext
,
266
var (success, valueProvider) = await CompositeValueProvider.TryCreateAsync(
PageContext
,
PageContext
.ValueProviderFactories);
275
PageContext
,
302
var (success, valueProvider) = await CompositeValueProvider.TryCreateAsync(
PageContext
,
PageContext
.ValueProviderFactories);
311
PageContext
,
345
PageContext
,
378
PageContext
,
403
var (success, valueProvider) = await CompositeValueProvider.TryCreateAsync(
PageContext
,
PageContext
.ValueProviderFactories);
413
PageContext
,
447
PageContext
,
1654
PageContext
,
Microsoft.AspNetCore.Mvc.RazorPages.Test (4)
Infrastructure\PageActionInvokerTest.cs (2)
316
Assert.IsType<ViewDataDictionary<TestPageModel>>(pageModel.
PageContext
.ViewData);
322
Assert.Same(pageModel.
PageContext
.ViewData, pageResult.ViewData);
PageModelTest.cs (2)
28
Assert.NotNull(pageModel.
PageContext
);
1743
Assert.Same(pageContext, pageModel.
PageContext
);