Beispiel #1
0
        public void TakeOutVegetable(Vegetable vegetable, int quantity)
        {
            _vegetableTray.TakeOut(vegetable, quantity);

            var vegetableQuantity      = _vegetableTray.GetVegetableQuantity();
            var insufficientVegetables = _vegetableTracker.GetInsufficientVegetableQuantity(vegetableQuantity, _configurationManager);

            _orderManager.OrderVegetables(insufficientVegetables);
        }
Beispiel #2
0
 public void TakeOutVegetable(Vegetable vegetable, int quantity)
 {
     _vegetableTray.TakeOut(vegetable, quantity);
 }