Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Fact]
- public void GetCreateShouldBeRoutedCorrectly()
- => MyRouting // Start a route test.
- .Configuration() // Use the globally registered configuration.
- .ShouldMap(request => request // Provide the request data.
- .WithLocation("/Articles/Create") // Set the URL of the Get request.
- .WithUser()) // Specify that the route needs an authenticated user.
- .To<ArticlesController>(c => c.Create()); // Map the route to the specific action and controller.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement