Exemplo n.º 1
0
 public void RdidDetected_IsAvailable_IsConnected_LockDoorIsCalled()
 {
     // Clear subs
     _fakeDoor.ClearReceivedCalls();
     // Arrange
     _fakeChargeControl.Connected.Returns(true);
     _uut._state = StationControl.LadeskabState.Available;
     // Act
     _uut.RfidDetected(1);
     // Assert
     _fakeDoor.Received(1).LockDoor();
 }
Exemplo n.º 2
0
 public void setup()
 {
     _uut = new StationControl(display, logfile, chargeControl, door, reader);
     display.ClearReceivedCalls();
     logfile.ClearReceivedCalls();
     chargeControl.ClearReceivedCalls();
     door.ClearReceivedCalls();
     reader.ClearReceivedCalls();
 }