public void Write_WhenPhoneLockerIsAvailableChargerConnectedRfidDetected_TimeAndRFIDCorrectLogged(int rfid) { //ARRANGE UUT.State = PhoneLockerState.Available; fakeChargeControl.Connected = true; string message2write = DateTime.Now.ToString("HH:mm:ss") + ": Skab laast med RFID: " + rfid; UUT.Rfid = rfid; //ACT fakeRfidReader.RFIDDetectedEvent += Raise.EventWith(new RFIDDetectedEventArgs() { RFID = rfid }); //ASSERT fakeLogging.Received(1).Write(message2write); }