Beispiel #1
0
        public BasketSplitter(IBasketHelper basketHelper)
        {
            if (basketHelper == null)
            {
                throw new ArgumentNullException();
            }

            _basketHelper = basketHelper;
        }
Beispiel #2
0
 public void Setup()
 {
     _basketHelper = new BasketHelper();
 }
Beispiel #3
0
 public ConsoleApplication(IPriceCalculator priceCalculator, IBasketHelper basketHelper, IBasketSplitter basketSplitter)
 {
     _priceCalculator = priceCalculator;
     _basketHelper    = basketHelper;
     _basketSplitter  = basketSplitter;
 }
Beispiel #4
0
 public void Setup()
 {
     _basketHelper   = new BasketHelper();
     _basketSplitter = new BasketSplitter(_basketHelper);
 }
 public void Setup()
 {
     _basketHelper    = new BasketHelper();
     _basketSplitter  = new BasketSplitter(_basketHelper);
     _priceCalculator = new PriceCalculator();
 }