public DrinkMaker(decimal currentMoney, Drink drink, ICoffeMachine coffeMachineService) { if (currentMoney < 0) { throw new ArgumentException(nameof(currentMoney)); } if (drink == null) { throw new ArgumentNullException(nameof(drink)); } if (coffeMachineService == null) { throw new ArgumentNullException(nameof(coffeMachineService)); } _drink = drink; _coffeMachineService = coffeMachineService; _currentMoney = currentMoney; }
public void MakeCoffee(ICoffeMachine _coffeeMachine) { _coffeeMachine.MakeCoffee(); }
public Employee(ICoffeMachine coffeeMachine) { _coffeeMachine = coffeeMachine; }