public BasketManager(IDiscountEngine discountEngine) { _discountEngine = discountEngine; _basket = new Basket(); _appliedDiscountRules = new List <DiscountRuleResult>(0); }
public CheckoutService( ICheckoutRepository repository, IDiscountEngine discountEngine, IMapper mapper) { _repository = repository; _discountEngine = discountEngine; _mapper = mapper; }
public CostController(IDiscountEngine discountEngine) { _discountEngine = discountEngine ?? throw new ArgumentNullException(nameof(discountEngine)); }