15.6.2.1 Using Optional URL Segments to Enforce Separation of Concerns; UNIT TESTING: OPTIONAL URL SEGMENTS
parent
e738287bc2
commit
488ab5bfac
|
@ -99,10 +99,9 @@ namespace UrlsAndRoutes.Tests
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
public void TestIncomingRoutes()
|
public void TestIncomingRoutes()
|
||||||
{
|
{
|
||||||
TestRouteMatch("~/", "Home", "Index", new { id = "DefaultId" });
|
TestRouteMatch("~/", "Home", "Index");
|
||||||
TestRouteMatch("~/Customer", "Customer", "index", new { id = "DefaultId" });
|
TestRouteMatch("~/Customer", "Customer", "index");
|
||||||
TestRouteMatch("~/Customer/List", "Customer", "List",
|
TestRouteMatch("~/Customer/List", "Customer", "List");
|
||||||
new { id = "DefaultId" });
|
|
||||||
TestRouteMatch("~/Customer/List/All", "Customer", "List", new { id = "All" });
|
TestRouteMatch("~/Customer/List/All", "Customer", "List", new { id = "All" });
|
||||||
TestRouteFail("~/Customer/List/All/Delete");
|
TestRouteFail("~/Customer/List/All/Delete");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue