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