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