示例#1
0
 public CheckoutModel(IUserQuery userQuery, ICartService cartService, IProductQuery productQuery, ICalculateCart calculateCart, IZarinPalFactory zarinPalFactory, IOrderApplication orderApplication)
 {
     _userQuery        = userQuery;
     _cartService      = cartService;
     _productQuery     = productQuery;
     _calculateCart    = calculateCart;
     _zarinPalFactory  = zarinPalFactory;
     _orderApplication = orderApplication;
 }
示例#2
0
        public CheckoutModel(ICartCalculatorService calculatorService, ICartService cartService,
                             IProductQuery productQuery, IOrderApplication orderApplication, IZarinPalFactory zarinPalFactory, IAuthHelper authHelper)
        {
            _cartCalculatorService = calculatorService;
            _cartService           = cartService;
            _productQuery          = productQuery;
            _orderApplication      = orderApplication;
            _zarinPalFactory       = zarinPalFactory;
            _authHelper            = authHelper;

            Cart = new Cart();
        }