From 488ab5bfac90434946de42d9fac476b825b6a686 Mon Sep 17 00:00:00 2001 From: Jason Zhu Date: Wed, 24 Nov 2021 19:08:15 +1100 Subject: [PATCH] 15.6.2.1 Using Optional URL Segments to Enforce Separation of Concerns; UNIT TESTING: OPTIONAL URL SEGMENTS --- UrlsAndRoutes/UrlsAndRoutes.Tests/RouteTests.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/UrlsAndRoutes/UrlsAndRoutes.Tests/RouteTests.cs b/UrlsAndRoutes/UrlsAndRoutes.Tests/RouteTests.cs index 810dfbf..8c7d8d7 100644 --- a/UrlsAndRoutes/UrlsAndRoutes.Tests/RouteTests.cs +++ b/UrlsAndRoutes/UrlsAndRoutes.Tests/RouteTests.cs @@ -99,10 +99,9 @@ namespace UrlsAndRoutes.Tests [TestMethod] public void TestIncomingRoutes() { - TestRouteMatch("~/", "Home", "Index", new { id = "DefaultId" }); - TestRouteMatch("~/Customer", "Customer", "index", new { id = "DefaultId" }); - TestRouteMatch("~/Customer/List", "Customer", "List", - new { id = "DefaultId" }); + TestRouteMatch("~/", "Home", "Index"); + TestRouteMatch("~/Customer", "Customer", "index"); + TestRouteMatch("~/Customer/List", "Customer", "List"); TestRouteMatch("~/Customer/List/All", "Customer", "List", new { id = "All" }); TestRouteFail("~/Customer/List/All/Delete"); }