public ActionResult Checkout(CheckoutViewModel model)
        {
            if (!ModelState.IsValid)
                return View(model);

            var command = new CheckoutCart(model.CartId, model.City, model.Address, model.Phone);
            Bus.Send<CheckoutCart>(command);

            return RedirectToAction("Index");
        }
        public void CheckoutCart()
        {
            var customerId = AddProductToCart();

            var controller = _container.GetInstance<CartController>();

            var viewResult = controller.Index(customerId) as ViewResult;
            var cartModel = viewResult.Model as CartView;

            var model = new CheckoutViewModel()
            {
                CartId = cartModel.Id,
                Phone = "123456",
                City = "Varna",
                Address = "Varna"
            };
            var result = controller.Checkout(model) as RedirectToRouteResult;
            object view;
            result.RouteValues.TryGetValue("action", out view);
            Assert.AreEqual("Index", view);
        }