public DoorControl(IDoorControlState state, IDoor door, IUserValidation vali, IEntryNotification entryNotify, IAlarm alarm) { _state = state; _door = door; _UserValidation = vali; _entryNotify = entryNotify; _Alarm = alarm; _state.State = DoorControlState.DoorClosed; }
public void Setup() { _state = new StubDoorControlState(); _validation = new StubUserValidation(); _alarm = Substitute.For <IAlarm>(); _door = Substitute.For <IDoor>(); _entry = Substitute.For <IEntryNotification>(); _UUT = new DoorControl(_state, _door, _validation, _entry, _alarm); }