Exemplo n.º 1
0
 public void SetUp()
 {
     _idReader = new RfIdReader();
     _idReader.RfIdDetectedEvent += (obj, args) =>
     {
         _idEventArgs = args;
     };
 }
Exemplo n.º 2
0
        public void SetUp()
        {
            _door           = Substitute.For <IDoor>();
            _chargerControl = Substitute.For <IChargerControl>();
            _idReader       = Substitute.For <IRfIdReader>();
            _log            = Substitute.For <Ilog>();
            _display        = Substitute.For <IDisplay>();

            _uut = new StationControl(_door, _chargerControl, _idReader, _log, _display);
        }
Exemplo n.º 3
0
 public StationControl(IDoor door, IChargerControl chargeControl, IRfIdReader rfIdReader, Ilog log, IDisplay display)
 {
     _door          = door;
     _chargeControl = chargeControl;
     _rfIdReader    = rfIdReader;
     _display       = display;
     _log           = log;
     _state         = LadeskabState.Available;
     _door.DoorStateChangedEvent   += HandleDoorStateChangedEvent;
     _rfIdReader.RfIdDetectedEvent += HandleRfidDetectedEvent;
 }