public void DoorControl_RequestEntry_EntryGranted()
 {
     _userValidation.ValidateEntryRequest("12").Returns(true);
     _uut.RequestEntry("12");
     _door.Received(1).Open();
     _entryNotification.Received(1).NotifyEntryGranted();
 }
Пример #2
0
        public void ClosedDoorOpens()
        {
            //arrangeele
            _userValidation.ValidateEntryRequest(1111).Returns(true);

            //act
            _uut.RequestEntry(1111);

            //assert
            _door.Received().Open();
            _entryNotification.Received().NotifyEntryGranted();
        }
Пример #3
0
 public void IsDoorOpen_TestState_ResultIsCorrect()
 {
     Assert.That(_uut.RequestEntry());
 }