예제 #1
0
 public PromotionRuleEngineeController(IProductService productService,
                                       IPromoRuleService promoRuleService, ICartService cartService, ICheckoutService checkoutService)
 {
     _productService   = productService;
     _promoRuleService = promoRuleService;
     _cartService      = cartService;
     _checkoutService  = checkoutService;
 }
예제 #2
0
 public CheckoutService(ICartService cartService,
                        IPromoRuleService promoRuleService,
                        IProductService productService)
 {
     _cartService      = cartService;
     _promoRuleService = promoRuleService;
     _productService   = productService;
     _promoCalculator  = PromoOfferManager.Instance;
 }
예제 #3
0
 public ShoppingCartController(IProductService productService,
                               ICartService cartService,
                               IPromoRuleService promoRuleService,
                               ICheckoutService checkoutService)
 {
     _productService   = productService;
     _cartService      = cartService;
     _promoRuleService = promoRuleService;
     _promoCalculator  = PromoOfferManager.Instance;
     _checkoutService  = checkoutService;
 }