Guest User

Untitled

a guest
Jan 21st, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. [Test]
  2. public void SearchController_routes_MotorcycleSearch_correctly()
  3. {
  4. "~/motorcycle-search/handlebars".ShouldMapTo<SearchController>(x => x.SingleSearch("handlebars"));
  5. }
  6.  
  7. [Test]
  8. public void SearchController_routes_Product_correctly()
  9. {
  10. var route = "~/product/123-456".ShouldMapTo<SearchController>(x => x.ProductDetail(null));
  11. route.Values["sku"].ShouldEqual("123-456");
  12. }
Add Comment
Please, Sign In to add comment