Add _ViewStart and _ViewImports to embedded view test
This commit is contained in:
parent
1e7c38ff22
commit
1810925b13
|
|
@ -253,6 +253,7 @@ ViewWithNestedLayout-Content
|
|||
var expected =
|
||||
@"<embdedded-layout>Hello from EmbeddedShared/_Partial
|
||||
Hello from Shared/_EmbeddedPartial
|
||||
<a href=""/EmbeddedViews"">Tag Helper Link</a>
|
||||
</embdedded-layout>";
|
||||
|
||||
// Act
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
@{ Layout = "/Views/EmbeddedShared/_Layout.cshtml"; }
|
||||
@Html.Partial("../EmbeddedShared/_Partial.cshtml")
|
||||
@Html.Partial("../EmbeddedShared/_Partial.cshtml")
|
||||
@Html.Partial("_EmbeddedPartial")
|
||||
<a asp-controller="EmbeddedViews" asp-action="Index">Tag Helper Link</a>
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
|
|
@ -0,0 +1 @@
|
|||
@{ Layout = "/Views/EmbeddedShared/_Layout.cshtml"; }
|
||||
Loading…
Reference in New Issue