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."); }