public PaymentTerminal(Dispenser dispenser)
 {
     this.dispenser    = dispenser;
     this.paymentEvent = new PaymentEvent();
     this.paymentEvent.Subscribe(dispenser);
     this.paymentEvent.Subscribe(dispenser.repository);
 }
Exemple #2
0
 public PaymentTerminal()
 {
     paymentEvent    = new PaymentEvent();
     dispenser       = new Dispenser();
     dataAcquisition = DataAcquisition.Instance;
     paymentEvent.Subscribe(dispenser);
     paymentEvent.Subscribe(dataAcquisition);
 }
Exemple #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;
 }