コード例 #1
0
        public void NavigateToActionWithNullExpression()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate <TestController>(a_actionExpression: null);
        }
コード例 #2
0
        public void NavigateToActionWithNullName()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate <TestController>(a_actionName: null, a_routeValues: new RouteDictionary());
        }
コード例 #3
0
        public void NavigateToAction()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate<TestController>(c => c.Index());
        }
コード例 #4
0
        public void NavigateToNotExistingActionWithName()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate <TestController>("Bindex", new RouteDictionary());
        }
コード例 #5
0
        public void NavigateToAction()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate <TestController>(c => c.Index());
        }
コード例 #6
0
        public void NavigateWithControllerAndNullRouteValues()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate(a_controllerName: "Test", a_actionName: "Index", a_routeValues: null);
        }
コード例 #7
0
        public void NavigateWithControllerAndNullActionName()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate(a_controllerName: "Test", a_actionName: null, a_routeValues: new RouteDictionary());
        }
コード例 #8
0
        public void NavigateWithControllerName()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate("Test", "Index", new RouteDictionary());
        }
コード例 #9
0
        public void NavigateToActionWithNullRouteValues()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate <TestController>(a_actionName: "Index", a_routeValues: null);
        }
コード例 #10
0
        public void NavigateWithControllerAndNullActionNameAndDynamicRouteValues()
        {
            // Setup
            dynamic routeValues    = new { };
            var     navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate(a_controllerName: "Test", a_actionName: null, a_routeValues: routeValues);
        }
コード例 #11
0
        public void NavigateToNotExistingActionWithNameAndDynamicRouteValues()
        {
            // Setup
            dynamic routeValues    = new { };
            var     navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate <TestController>("Bindex", routeValues);
        }
コード例 #12
0
        public void NavigateToActionWithNullNameAndDynamicRouteValues()
        {
            // Setup
            dynamic routeValues    = new { };
            var     navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate <TestController>(a_actionName: null, a_routeValues: routeValues);
        }
コード例 #13
0
        public void NavigateWithControllerNameAndDynamicRouteValues()
        {
            // Setup
            dynamic routeValues    = new { };
            var     navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate("Test", "Index", routeValues);
        }
コード例 #14
0
        public void NavigateToActionWithArguments()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            var routeDictionary = new RouteDictionary
            {
                { "id", 12 }
            };
            navigationCore.Navigate<TestController>("User", routeDictionary);
        }
コード例 #15
0
        public void NavigateToActionWithArgumentsAndDynamicRouteValues()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            dynamic routeValues = new
            {
                id = 12
            };
            navigationCore.Navigate<TestController>("User", routeValues);
        }
コード例 #16
0
        public void NavigateToActionWithArgumentsOverload2()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            var routeDictionary = new RouteDictionary
            {
                { "username", "jsmunroe" },
                { "password", "password" }
            };
            navigationCore.Navigate<TestController>("User", routeDictionary);
        }
コード例 #17
0
        public void NavigateToActionWithTooFewArguments()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            var routeDictionary = new RouteDictionary
            {
                { "username", "jsmunroe" },
            };

            navigationCore.Navigate <TestController>("User", routeDictionary);
        }
コード例 #18
0
        public void NavigateToActionWithTooFewArgumentsAndDynamicRouteValues()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            dynamic routeValues = new
            {
                username = "******",
            };

            navigationCore.Navigate <TestController>("User", routeValues);
        }
コード例 #19
0
        public void NavigateToActionWithArguments()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            var routeDictionary = new RouteDictionary
            {
                { "id", 12 }
            };

            navigationCore.Navigate <TestController>("User", routeDictionary);
        }
コード例 #20
0
        public void NavigateToActionWithArgumentsOverload2()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            var routeDictionary = new RouteDictionary
            {
                { "username", "jsmunroe" },
                { "password", "password" }
            };

            navigationCore.Navigate <TestController>("User", routeDictionary);
        }
コード例 #21
0
        public void NavigateToActionWithNullNameAndDynamicRouteValues()
        {
            // Setup
            dynamic routeValues = new { };
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate<TestController>(a_actionName: null, a_routeValues: routeValues);
        }
コード例 #22
0
        public void NavigateToActionWithNullName()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate<TestController>(a_actionName: null, a_routeValues: new RouteDictionary());
        }
コード例 #23
0
        public void NavigateWithNullControllerName()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate(a_controllerName:null, a_actionName:"Index", a_routeValues:new RouteDictionary());
        }
コード例 #24
0
        public void NavigateWithNullControllerNameAndDynamicRouteValues()
        {
            // Setup
            dynamic routeValues = new { };
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate(a_controllerName: null, a_actionName: "Index", a_routeValues: routeValues);
        }
コード例 #25
0
        public void NavigateWithControllerName()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate("Test", "Index", new RouteDictionary());
        }
コード例 #26
0
        public void NavigateWithControllerNameAndDynamicRouteValues()
        {
            // Setup
            dynamic routeValues = new { };
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate("Test", "Index", routeValues);
        }
コード例 #27
0
        public void NavigateWithControllerAndNullRouteValues()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate(a_controllerName: "Test", a_actionName: "Index", a_routeValues: null);
        }
コード例 #28
0
        public void NavigateToNotExistingActionWithNameAndDynamicRouteValues()
        {
            // Setup
            dynamic routeValues = new { };
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate<TestController>("Bindex", routeValues);
        }
コード例 #29
0
        public void NavigateToNotExistingActionWithName()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate<TestController>("Bindex", new RouteDictionary());
        }
コード例 #30
0
        public void NavigateToActionWithTooFewArguments()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            var routeDictionary = new RouteDictionary
            {
                { "username", "jsmunroe" },
            };
            navigationCore.Navigate<TestController>("User", routeDictionary);
        }
コード例 #31
0
        public void NavigateToActionWithNullRouteValues()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate<TestController>(a_actionName: "Index", a_routeValues: null);
        }
コード例 #32
0
        public void NavigateToActionWithArgumentsOverload2AndDynamicRouteValues()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            dynamic routeValues = new
            {
                username = "******",
                password = "******"
            };
            navigationCore.Navigate<TestController>("User", routeValues);
        }
コード例 #33
0
        public void NavigateToActionWithNullExpression()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate<TestController>(a_actionExpression: null);
        }