예제 #1
0
 public void DeleteAll_ShouldReturn_NonNull_Boolean()
 {
     //Act
     IAttendeeService service = new AttendeeService();
     bool returnSuccess = service.DeleteAll();
     //Assert
     Assert.IsInstanceOfType(returnSuccess, typeof (bool));
 }
예제 #2
0
 public void DeleteAll_ShouldReturn_NonNull_Boolean()
 {
     //Arrange
     const bool success = true;
     _mockAttendee.Expect(x => x.DeleteAll()).Return(success).Repeat.Once();
     _mockRepository.ReplayAll();
     //Act
     IAttendeeService service = new AttendeeService(_mockAttendee);
     bool returnSuccess = service.DeleteAll();
     //Assert
     _mockRepository.VerifyAll();
     Assert.IsInstanceOfType(returnSuccess, typeof(bool));
 }