public void RouteTest_JudgeIndex() { var routes = new RouteCollection(); RouteRegistrar.RegisterAll(routes); routes.ShouldMap("~/Judge/Tournament/1").To <TournamentJudgeController>(x => x.JudgeIndex(1, null)); }
public void RouteTest_Elmah_NoRoute() { var routes = new RouteCollection(); RouteRegistrar.RegisterAll(routes); routes.ShouldMap("~/elmah.axd").ToIgnoredRoute(); }
public void RouteTest_Error404() { var routes = new RouteCollection(); RouteRegistrar.RegisterAll(routes); routes.ShouldMap("~/Error/Error404").To <ErrorController>(x => x.Error404()); }
public void RouteTest_DefaultRoute() { var routes = new RouteCollection(); RouteRegistrar.RegisterAll(routes); routes.ShouldMap("~/").To <RootController>(x => x.Index()); }
public void RouteTest_AdminMain() { var routes = new RouteCollection(); RouteRegistrar.RegisterAll(routes); routes.ShouldMap("~/Admin/Main").To <MainController>(x => x.Index()); }
public void RouteTest_AdminTournamentJudges() { var routes = new RouteCollection(); RouteRegistrar.RegisterAll(routes); routes.ShouldMap("~/Admin/Tournament/14/JudgeList").To <TournamentAdminController>(x => x.JudgeList(14)); }
public void RouteTest_AdminTournamentDefaultPageNew() { var routes = new RouteCollection(); RouteRegistrar.RegisterAll(routes); routes.ShouldMap("~/Admin/Tournament/14").To <TournamentAdminController>(x => x.AdminIndex(14)); }