Advertisement
ivaylokenov

Untitled

Nov 18th, 2019
591
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.60 KB | None | 0 0
  1. [Fact]
  2. public void GetCreateShouldShouldReturnView()
  3.     => MyMvc
  4.         .Pipeline()                               // Start a pipeline test.
  5.         .ShouldMap(request => request             // Provide the request data.
  6.             .WithLocation("/Articles/Create")
  7.             .WithUser())
  8.         .To<ArticlesController>(c => c.Create())  // Validate the route values.
  9.         .Which()                                  // Provide additional assertions on the controller.
  10.         .ShouldReturn()                          
  11.         .View();                                  // Validate the view result.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement