Exemplo n.º 1
0
        public BasketManager(IDiscountEngine discountEngine)
        {
            _discountEngine = discountEngine;

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