public void RFIdDetected_MobileConnectedAndAvailable_DoorLockedChargerStart()
        {
            _usbCharger.Connected = true;

            _usbCharger.CurrentValueEvent += Raise.EventWith <CurrentEventArgs>(this, new CurrentEventArgs()
            {
                Current = 1
            });
            _rfidReader.RfidEvent += Raise.EventWith(new RfidEventArgs {
                RfID = 123456
            });

            _door.Received(1).LockDoor();
            _chargeControl.Received(1).StartCharge();
            _fileLog.Received(1).LogDoorLocked(123456);
            _display.Received(1).Print("Skabet er låst og din telefon lades. Brug dit RFID tag til at låse op.");

            _display.DidNotReceive().Print("Din telefon er ikke ordentlig tilsluttet. Prøv igen.");
        }
        public void SUTFileLogReceivesEvents()
        {
            List <Event> events1 = new List <Event>();
            List <Track> tracks1 = new List <Track>();

            Track track1 = new Track();

            track1.Tag    = "AB408";
            track1.InArea = false;
            tracks1.Add(track1);
            events1 = _sut.DetectEvents(tracks1);

            List <Track> tracks2 = new List <Track>();
            Track        track2  = new Track();

            track2.Tag    = "AB408";
            track2.InArea = true;
            tracks2.Add(track2);
            events1 = _sut.DetectEvents(tracks2);

            _fileLog.Received().Log(events1);
        }