public void ShoppingCartController_AddItem_ShouldRedirect_ToItemAdded_AndPassIn_ID_1()
        {
            ShoppingCartController controller = new ShoppingCartController(cartService, catalogService);
            ActionRedirectResult   result     = (ActionRedirectResult)controller.AddItem(1);

            //we should get a redirect here
            Assert.AreEqual("ItemAdded", result.Values["action"].ToString());
            Assert.AreEqual("1", result.Values["productID"].ToString());
        }
        public void UserController_Index_Redirects_To_Login()
        {
            UserController controller = new UserController(userService);
            ActionResult   result     = controller.Index();

            Assert.IsInstanceOfType(result, typeof(ActionRedirectResult));

            ActionRedirectResult renderResult = result as ActionRedirectResult;

            Assert.AreEqual("Login", renderResult.Values["action"]);
        }