15.6.3 Defining Variable-Length Routes; UNIT TEST: TESTING CATCHALL SEGMENT VARIABLES
parent
b9dc70e649
commit
e6bcdbe2b4
|
@ -103,7 +103,10 @@ namespace UrlsAndRoutes.Tests
|
|||
TestRouteMatch("~/Customer", "Customer", "index");
|
||||
TestRouteMatch("~/Customer/List", "Customer", "List");
|
||||
TestRouteMatch("~/Customer/List/All", "Customer", "List", new { id = "All" });
|
||||
TestRouteFail("~/Customer/List/All/Delete");
|
||||
TestRouteMatch("~/Customer/List/All/Delete", "Customer", "List",
|
||||
new { id = "All", catchall = "Delete" });
|
||||
TestRouteMatch("~/Customer/List/All/Delete/Perm", "Customer", "List",
|
||||
new { id = "All", catchall = "Delete/Param" });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue