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