public CashButtonControlPresenter(ICashButtonControlView view, IVendingMachineChange repository)
 {
     _controlKind = AccountType.VendingMachine;
     _vendingMachineChangeRepository = repository;
     _view        = view;
     _view.Shown += _view_Shown;
 }
 public CashButtonControlPresenter(ICashButtonControlView view, ICustomerPurse repository)
 {
     _controlKind            = AccountType.Customer;
     _customerCashRepository = repository;
     _view        = view;
     _view.Shown += _view_Shown;
 }
Ejemplo n.º 3
0
 public IVendingMachineChangeCashButtonControlPresenter CreateVendingMachineChangeCashButtonControlPresenter(ICashButtonControlView view, IVendingMachineChange repository)
 {
     return(new CashButtonControlPresenter(view, repository));
 }
Ejemplo n.º 4
0
 public ICustomerCashButtonControlPresenter CreateCustomerCashButtonControlPresenter(ICashButtonControlView view, ICustomerPurse repository)
 {
     return(new CashButtonControlPresenter(view, repository));
 }