public void Setup() { _uut = new Door(); _alarm = Substitute.For <IAlarm>(); _door = Substitute.For <IDoor>(); _entryNotification = Substitute.For <IEntryNotification>(); _userValidation = Substitute.For <IUserValidation>(); _doorControl = Substitute.For <IDoorControl>(); }
public void Detach(IDoorControl doorControl) { }
public void Attach(IDoorControl doorControl) { }
public PenetrationSensor(IDoorControl MainDoor) { State = true; MainDoor.DoorOpened += Alarm; }
public void Detach(IDoorControl doorControl) { _doorControl = null; }
public void Attach(IDoorControl doorControl) { _doorControl = doorControl; }