Beispiel #1
0
 public void ResetAllHasWon_ShouldReturn_NonNull_Boolean()
 {
     using (new TransactionScope()) {
         //Act
         IAttendee attendee = new Attendee();
         bool returnSuccess = attendee.ResetAllHasWon();
         //Assert
         Assert.IsInstanceOfType(returnSuccess, typeof (bool));
     }
 }
Beispiel #2
0
 public void ResetAllHasWon_ShouldReturn_NonNull_Boolean()
 {
     //Arrange
     const bool success = true;
     _mockRepo.Expect(x => x.ResetAllHasWon()).Return(success).Repeat.Once();
     _mockRepository.ReplayAll();
     //Act
     IAttendee attendee = new Attendee(_mockRepo);
     bool returnSuccess = attendee.ResetAllHasWon();
     //Assert
     _mockRepository.VerifyAll();
     Assert.IsInstanceOfType(returnSuccess, typeof(bool));
 }