Пример #1
0
        public void RouteTest_JudgeIndex()
        {
            var routes = new RouteCollection();

            RouteRegistrar.RegisterAll(routes);
            routes.ShouldMap("~/Judge/Tournament/1").To <TournamentJudgeController>(x => x.JudgeIndex(1, null));
        }
Пример #2
0
        public void RouteTest_Elmah_NoRoute()
        {
            var routes = new RouteCollection();

            RouteRegistrar.RegisterAll(routes);
            routes.ShouldMap("~/elmah.axd").ToIgnoredRoute();
        }
Пример #3
0
        public void RouteTest_Error404()
        {
            var routes = new RouteCollection();

            RouteRegistrar.RegisterAll(routes);
            routes.ShouldMap("~/Error/Error404").To <ErrorController>(x => x.Error404());
        }
Пример #4
0
        public void RouteTest_DefaultRoute()
        {
            var routes = new RouteCollection();

            RouteRegistrar.RegisterAll(routes);
            routes.ShouldMap("~/").To <RootController>(x => x.Index());
        }
Пример #5
0
        public void RouteTest_AdminMain()
        {
            var routes = new RouteCollection();

            RouteRegistrar.RegisterAll(routes);
            routes.ShouldMap("~/Admin/Main").To <MainController>(x => x.Index());
        }
Пример #6
0
        public void RouteTest_AdminTournamentJudges()
        {
            var routes = new RouteCollection();

            RouteRegistrar.RegisterAll(routes);
            routes.ShouldMap("~/Admin/Tournament/14/JudgeList").To <TournamentAdminController>(x => x.JudgeList(14));
        }
Пример #7
0
        public void RouteTest_AdminTournamentDefaultPageNew()
        {
            var routes = new RouteCollection();

            RouteRegistrar.RegisterAll(routes);
            routes.ShouldMap("~/Admin/Tournament/14").To <TournamentAdminController>(x => x.AdminIndex(14));
        }