public void InsertAll_ShouldReturn_NonNull_Boolean()
 {
     //Act
     IAttendeeService service = new AttendeeService();
     bool returnSuccess = service.InsertAll(new List<AttendeeDTO>());
     //Assert
     Assert.IsInstanceOfType(returnSuccess, typeof(bool));
 }
 public void Insertll_ShouldReturn_NonNull_Boolean()
 {
     //Arrange
     const bool success = true;
     _mockAttendee.Expect(x => x.InsertAll(new List<AttendeeDTO>())).IgnoreArguments().Return(success).Repeat.Once();
     _mockRepository.ReplayAll();
     //Act
     IAttendeeService service = new AttendeeService(_mockAttendee);
     bool returnSuccess = service.InsertAll(new List<AttendeeDTO>());
     //Assert
     _mockRepository.VerifyAll();
     Assert.IsInstanceOfType(returnSuccess, typeof(bool));
 }
 public void InsertAll_ShouldReturn_NonNull_Boolean()
 {
     //Arrange
     IList<AttendeeDTO> attendeeDtos = new List<AttendeeDTO> { new AttendeeDTO { FirstName = "FName", LastName = "LName", Company = "Company", Email = "*****@*****.**", IsEligible = true, HasWon = true } };
     using (new TransactionScope())
     {
         //Act
         IAttendeeService service = new AttendeeService();
         bool returnSuccess = service.InsertAll(attendeeDtos);
         //Assert
         Assert.IsInstanceOfType(returnSuccess, typeof(bool));
     }
 }