Add _ViewStart and _ViewImports to embedded view test

This commit is contained in:
Pranav K 2017-07-11 16:58:30 -07:00
parent 1e7c38ff22
commit 1810925b13
4 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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>

View File

@ -0,0 +1 @@
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

View File

@ -0,0 +1 @@
@{ Layout = "/Views/EmbeddedShared/_Layout.cshtml"; }