示例#1
0
 public void TestHomeControllerRoutes()
 {
     // check for the URL that we hope to receive
     RouteTest.TestRouteMatch("~/", "Home", "Index");
     RouteTest.TestRouteMatch("~/Home/Index", "Home", "Index");
     RouteTest.TestRouteMatch("~/Agreement", "Home", "Agreement");
 }
示例#2
0
 public void TestWebApiAccountProfileRoutes()
 {
     // check for the URL that we hope to receive
     RouteTest.TestRouteMatch("~/accounts/profile", "Profile", "Post", null, "POST");
     RouteTest.TestRouteMatch("~/accounts/profile", "Profile", "Get");
     RouteTest.TestRouteMatch("~/accounts/profile", "Profile", "Put", null, "PUT");
     RouteTest.TestRouteMatch("~/accounts/profile", "Profile", "Delete", null, "DELETE");
 }
示例#3
0
 public void TestWebApiProjectRoutes()
 {
     // check for the URL that we hope to receive
     RouteTest.TestRouteMatch("~/projects", "Projects", "Post", null, "POST");
     RouteTest.TestRouteMatch("~/projects", "Projects", "Get");
     RouteTest.TestRouteMatch("~/projects/222", "Projects", "Get", new { id = "222" });
     RouteTest.TestRouteMatch("~/projects/222", "Projects", "Put", new { id = "222" }, "PUT");
     RouteTest.TestRouteMatch("~/projects/222", "Projects", "Delete", new { id = "222" }, "DELETE");
 }
示例#4
0
 public void TestWebApiAccountSessionRoutes()
 {
     // check for the URL that we hope to receive
     RouteTest.TestRouteMatch("~/accounts/session", "Session", "Post", null, "POST");
     RouteTest.TestRouteMatch("~/accounts/session", "Session", "Get");
 }