Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Test]
- public void SearchController_routes_MotorcycleSearch_correctly()
- {
- "~/motorcycle-search/handlebars".ShouldMapTo<SearchController>(x => x.SingleSearch("handlebars"));
- }
- [Test]
- public void SearchController_routes_Product_correctly()
- {
- var route = "~/product/123-456".ShouldMapTo<SearchController>(x => x.ProductDetail(null));
- route.Values["sku"].ShouldEqual("123-456");
- }
Add Comment
Please, Sign In to add comment