Skip to content

Commit 6ade11b

Browse files
committed
Added test action in mvc controller for testing view results by name.
1 parent 58df54f commit 6ade11b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/MyTested.AspNetCore.Mvc.Test.Setups/Controllers/MvcController.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ public IActionResult IndexView()
8383
return this.View("Index", this.ResponseModel);
8484
}
8585

86+
public IActionResult ViewResultByName()
87+
{
88+
return this.View("TestView", new { id = 1, test = "text" });
89+
}
90+
8691
public IActionResult CustomViewResult()
8792
{
8893
return new ViewResult

0 commit comments

Comments
 (0)