public PromotionRuleEngineeController(IProductService productService, IPromoRuleService promoRuleService, ICartService cartService, ICheckoutService checkoutService) { _productService = productService; _promoRuleService = promoRuleService; _cartService = cartService; _checkoutService = checkoutService; }
public CheckoutService(ICartService cartService, IPromoRuleService promoRuleService, IProductService productService) { _cartService = cartService; _promoRuleService = promoRuleService; _productService = productService; _promoCalculator = PromoOfferManager.Instance; }
public ShoppingCartController(IProductService productService, ICartService cartService, IPromoRuleService promoRuleService, ICheckoutService checkoutService) { _productService = productService; _cartService = cartService; _promoRuleService = promoRuleService; _promoCalculator = PromoOfferManager.Instance; _checkoutService = checkoutService; }