public PaymentTerminal(Dispenser dispenser) { this.dispenser = dispenser; this.paymentEvent = new PaymentEvent(); this.paymentEvent.Subscribe(dispenser); this.paymentEvent.Subscribe(dispenser.repository); }
public PaymentTerminal() { paymentEvent = new PaymentEvent(); dispenser = new Dispenser(); dataAcquisition = DataAcquisition.Instance; paymentEvent.Subscribe(dispenser); paymentEvent.Subscribe(dataAcquisition); }
public PaymentTerminal(Dispenser dispenser) { this.dispenser = dispenser; paymentEvent = new PaymentEvent(); paymentEvent.Subscribe(dispenser); data = Data.Instance; paymentEvent.Subscribe(data); data.Collection = dispenser.Collection; }