public PaymentTerminal(Dispenser dispenser)
 {
     this.dispenser    = dispenser;
     this.paymentEvent = new PaymentEvent();
     this.paymentEvent.Subscribe(dispenser);
     this.paymentEvent.Subscribe(dispenser.repository);
 }
예제 #2
0
 public PaymentTerminal()
 {
     paymentEvent    = new PaymentEvent();
     dispenser       = new Dispenser();
     dataAcquisition = DataAcquisition.Instance;
     paymentEvent.Subscribe(dispenser);
     paymentEvent.Subscribe(dataAcquisition);
 }
예제 #3
0
 public PaymentTerminal(Dispenser dispenser)
 {
     this.dispenser = dispenser;
     paymentEvent   = new PaymentEvent();
     paymentEvent.Subscribe(dispenser);
     data = Data.Instance;
     paymentEvent.Subscribe(data);
     data.Collection = dispenser.Collection;
 }