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; }
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(); }