Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Fact]
- public void GetCreateShouldShouldReturnView()
- => MyMvc
- .Pipeline() // Start a pipeline test.
- .ShouldMap(request => request // Provide the request data.
- .WithLocation("/Articles/Create")
- .WithUser())
- .To<ArticlesController>(c => c.Create()) // Validate the route values.
- .Which() // Provide additional assertions on the controller.
- .ShouldReturn()
- .View(); // Validate the view result.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement