Exemplo n.º 1
0
        public void NavigateToActionWithNullExpression()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate <TestController>(a_actionExpression: null);
        }
Exemplo n.º 2
0
        public void NavigateToActionWithNullName()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate <TestController>(a_actionName: null, a_routeValues: new RouteDictionary());
        }
Exemplo n.º 3
0
        public void NavigateToAction()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate<TestController>(c => c.Index());
        }
Exemplo n.º 4
0
        public void NavigateToNotExistingActionWithName()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate <TestController>("Bindex", new RouteDictionary());
        }
Exemplo n.º 5
0
        public void NavigateToAction()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate <TestController>(c => c.Index());
        }
Exemplo n.º 6
0
        public void NavigateWithControllerAndNullRouteValues()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate(a_controllerName: "Test", a_actionName: "Index", a_routeValues: null);
        }
Exemplo n.º 7
0
        public void NavigateWithControllerAndNullActionName()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate(a_controllerName: "Test", a_actionName: null, a_routeValues: new RouteDictionary());
        }
Exemplo n.º 8
0
        public void NavigateWithControllerName()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate("Test", "Index", new RouteDictionary());
        }
Exemplo n.º 9
0
        public void NavigateToActionWithNullRouteValues()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate <TestController>(a_actionName: "Index", a_routeValues: null);
        }
Exemplo n.º 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);
        }
Exemplo n.º 11
0
        public void NavigateToNotExistingActionWithNameAndDynamicRouteValues()
        {
            // Setup
            dynamic routeValues    = new { };
            var     navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate <TestController>("Bindex", routeValues);
        }
Exemplo n.º 12
0
        public void NavigateToActionWithNullNameAndDynamicRouteValues()
        {
            // Setup
            dynamic routeValues    = new { };
            var     navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate <TestController>(a_actionName: null, a_routeValues: routeValues);
        }
Exemplo n.º 13
0
        public void NavigateWithControllerNameAndDynamicRouteValues()
        {
            // Setup
            dynamic routeValues    = new { };
            var     navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate("Test", "Index", routeValues);
        }
Exemplo n.º 14
0
        public void NavigateToActionWithArguments()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            var routeDictionary = new RouteDictionary
            {
                { "id", 12 }
            };
            navigationCore.Navigate<TestController>("User", routeDictionary);
        }
Exemplo n.º 15
0
        public void NavigateToActionWithArgumentsAndDynamicRouteValues()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            dynamic routeValues = new
            {
                id = 12
            };
            navigationCore.Navigate<TestController>("User", routeValues);
        }
Exemplo n.º 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);
        }
Exemplo n.º 17
0
        public void NavigateToActionWithTooFewArguments()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

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

            navigationCore.Navigate <TestController>("User", routeDictionary);
        }
Exemplo n.º 18
0
        public void NavigateToActionWithTooFewArgumentsAndDynamicRouteValues()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

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

            navigationCore.Navigate <TestController>("User", routeValues);
        }
Exemplo n.º 19
0
        public void NavigateToActionWithArguments()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

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

            navigationCore.Navigate <TestController>("User", routeDictionary);
        }
Exemplo n.º 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);
        }
Exemplo n.º 21
0
        public void NavigateToActionWithNullNameAndDynamicRouteValues()
        {
            // Setup
            dynamic routeValues = new { };
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate<TestController>(a_actionName: null, a_routeValues: routeValues);
        }
Exemplo n.º 22
0
        public void NavigateToActionWithNullName()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate<TestController>(a_actionName: null, a_routeValues: new RouteDictionary());
        }
Exemplo n.º 23
0
        public void NavigateWithNullControllerName()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate(a_controllerName:null, a_actionName:"Index", a_routeValues:new RouteDictionary());
        }
Exemplo n.º 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);
        }
Exemplo n.º 25
0
        public void NavigateWithControllerName()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate("Test", "Index", new RouteDictionary());
        }
Exemplo n.º 26
0
        public void NavigateWithControllerNameAndDynamicRouteValues()
        {
            // Setup
            dynamic routeValues = new { };
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate("Test", "Index", routeValues);
        }
Exemplo n.º 27
0
        public void NavigateWithControllerAndNullRouteValues()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

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

            // Execute
            navigationCore.Navigate<TestController>("Bindex", routeValues);
        }
Exemplo n.º 29
0
        public void NavigateToNotExistingActionWithName()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate<TestController>("Bindex", new RouteDictionary());
        }
Exemplo n.º 30
0
        public void NavigateToActionWithTooFewArguments()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            var routeDictionary = new RouteDictionary
            {
                { "username", "jsmunroe" },
            };
            navigationCore.Navigate<TestController>("User", routeDictionary);
        }
Exemplo n.º 31
0
        public void NavigateToActionWithNullRouteValues()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

            // Execute
            navigationCore.Navigate<TestController>(a_actionName: "Index", a_routeValues: null);
        }
Exemplo n.º 32
0
        public void NavigateToActionWithArgumentsOverload2AndDynamicRouteValues()
        {
            // Setup
            var navigationCore = new NavigationCore(_mvcEngine);

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

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