public IHttpActionResult Confirm(UserCartModel userCart)
        {
            Order order = Manager.ConfirmCart(userCart.UserId, userCart.CartId);

            if (order == null)
            {
                return(NotFound());
            }

            return(Ok(order));
        }
        private ICartManager GetCartManager(IProductRepository productRepository, IUserRepository userRepository)
        {
            ICartRepository     cartRepository     = new StubCartRepository();
            ICartItemRepository cartItemRepository = new StubCartItemRepository();
            IPointSystemConfigurationRepository configurationRepository = new StubPointSystemConfigurationRepository();

            configurationRepository.AddEntity(new PointSystemConfiguration()
            {
                PropertyName = ESportUtils.LOYALTY_PROPERTY_NAME, PropertyValue = 100
            });
            ICartManager cartManager = new CartManager(cartRepository, cartItemRepository, productRepository, userRepository, configurationRepository);
            CartRequest  cartRequest = GetCartRequest();
            Cart         currentCart = cartManager.AddProduct(cartRequest);

            itemTest = currentCart.Items.Where(item => item.Product.ProductId.Equals(cartRequest.ProductId)).First();
            cartManager.ConfirmCart(cartRequest);
            return(cartManager);
        }