27 references to LayoutPath
Microsoft.AspNetCore.Mvc.Razor.Test (27)
RazorViewTest.cs (27)
161v.Layout = LayoutPath;
176Path = LayoutPath
182.Setup(p => p.GetAbsolutePath("_ViewStart", LayoutPath))
183.Returns(LayoutPath);
185.Setup(v => v.GetPage(pagePath, LayoutPath))
186.Returns(new RazorPageResult(LayoutPath, layout));
202Assert.Equal(new[] { "_ViewStart", pagePath, LayoutPath }, paths);
242v.Layout = LayoutPath;
255.Setup(p => p.CreateFactory(LayoutPath))
260.Setup(v => v.GetPage(/*executingFilePath*/ null, LayoutPath))
261.Returns(new RazorPageResult(LayoutPath, layout));
662v.Layout = LayoutPath;
691.Setup(v => v.GetPage(/*executingFilePath*/ null, LayoutPath))
692.Returns(new RazorPageResult(LayoutPath, layout))
721v.Layout = LayoutPath;
729Path = LayoutPath
733.Setup(v => v.GetPage(/*executingFilePath*/ null, LayoutPath))
734.Returns(new RazorPageResult(LayoutPath, layout));
748+ $"at '{LayoutPath}': 'head, foot'. To ignore an unrendered section call IgnoreSection(\"sectionName\").",
1026v.Layout = LayoutPath;
1032Path = LayoutPath
1036.Setup(p => p.GetPage(/*executingFilePath*/ null, LayoutPath))
1037.Returns(new RazorPageResult(LayoutPath, layout));
1050Assert.Equal($"RenderBody has not been called for the page at '{LayoutPath}'. To ignore call IgnoreBody().",
1748var page = new TestableRazorPage(p => { p.Layout = LayoutPath; });
1759viewEngine.Setup(v => v.FindPage(It.IsAny<ActionContext>(), LayoutPath))
1760.Returns(new RazorPageResult(LayoutPath, layout));