1 write to Page
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\PageActionInvoker.cs (1)
124
pageResult.
Page
= _page;
24 references to Page
Microsoft.AspNetCore.Mvc.RazorPages (3)
Infrastructure\PageResultExecutor.cs (2)
69
var viewContext = result.
Page
.ViewContext;
70
var pageAdapter = new RazorPageAdapter(result.
Page
, pageContext.ActionDescriptor.DeclaredModelTypeInfo!);
PageResult.cs (1)
56
nameof(
Page
),
Microsoft.AspNetCore.Mvc.RazorPages.Test (21)
Infrastructure\PageActionInvokerTest.cs (20)
204
Assert.Same(page, pageResult.
Page
);
260
Assert.Same(page, pageResult.
Page
);
320
Assert.IsType<TestPage>(pageResult.
Page
);
483
Assert.Null(pageResult.
Page
);
580
Assert.NotNull(pageResult.
Page
);
582
Assert.NotNull(pageResult.
Page
.ViewContext);
614
Assert.NotNull(pageResult.
Page
);
616
Assert.NotNull(pageResult.
Page
.ViewContext);
649
Assert.NotNull(pageResult.
Page
);
651
Assert.NotNull(pageResult.
Page
.ViewContext);
683
Assert.NotNull(pageResult.
Page
);
685
Assert.NotNull(pageResult.
Page
.ViewContext);
718
Assert.NotNull(pageResult.
Page
);
720
Assert.NotNull(pageResult.
Page
.ViewContext);
752
Assert.NotNull(pageResult.
Page
);
754
Assert.NotNull(pageResult.
Page
.ViewContext);
788
Assert.NotNull(pageResult.
Page
);
790
Assert.NotNull(pageResult.
Page
.ViewContext);
823
Assert.NotNull(pageResult.
Page
);
825
Assert.NotNull(pageResult.
Page
.ViewContext);
PageModelTest.cs (1)
1839
Assert.Null(pageResult.
Page
); // This is set by the invoker