public void Setup() { _usbSimulator = Substitute.For <IUsbCharger>(); _chargeControl = Substitute.For <IChargeControl>(); _door = Substitute.For <IDoor>(); _display = Substitute.For <IDisplay>(); _logfile = Substitute.For <ILogFile>(); _rfid = Substitute.For <IRFIDreader>(); _uut = new StationControl(_chargeControl, _door, _display, _logfile, _rfid); }
public StationControl(IChargeControl chargeControl, IDoor door, IDisplay display, ILogFile logfile, IRFIDreader rfid) { _charger = chargeControl; _door = door; door.doorClose += doorClosed; door.doorOpen += doorOpened; _display = display; _logfile = logfile; _rfid = rfid; _rfid.RFIDEvent += RfidDetected; }