Пример #1
0
 public MachineLogic(IDrinkMakerProtocol drinkMakerProtocol,
                     IBeverageQuantityChecker beverageQuantityChecker,
                     IEmailNotifier emailNotifier)
 {
     this.drinkMakerProtocol      = drinkMakerProtocol;
     this.cashier                 = new Cashier();
     this.repository              = new Repository();
     this.beverageQuantityChecker = beverageQuantityChecker;
     this.emailNotifier           = emailNotifier;
 }
Пример #2
0
 public MachineLogic(IDrinkMakerProtocol drinkMakerProtocol)
 {
     this.drinkMakerProtocol = drinkMakerProtocol;
     this.cashier            = new Cashier();
     this.repository         = new Repository();
 }