public CheckoutModel(ICartCalculatorService calculatorService, ICartService cartService,
                             IProductQueryModel productQuery, IOrderApplication orderApplication, IZarinPalFactory zarinPalFactory, IAuthHelper authHelper)
        {
            _cartCalculatorService = calculatorService;
            _cartService           = cartService;
            _productQuery          = productQuery;
            _orderApplication      = orderApplication;
            _zarinPalFactory       = zarinPalFactory;
            _authHelper            = authHelper;

            Cart = new Cart();
        }
Example #2
0
 public ShoppingCartModel(IProductQueryModel productQuery)
 {
     CartItems     = new List <CartItem>();
     _productQuery = productQuery;
 }
 public LatestProductsViewComponent(IProductQueryModel productQueryModel)
 {
     _productQueryModel = productQueryModel;
 }
 public SearchModel(IProductQueryModel productQuery)
 {
     _productQuery = productQuery;
 }
Example #5
0
 public ProductModel(IProductQueryModel productQuery, ICommentApplication commentApplication)
 {
     _productQuery       = productQuery;
     _commentApplication = commentApplication;
 }