public void GetAll_ShouldReturn_NonNull_ListOf_AttendeeDTO()
 {
     //Act
     IAttendeeService service = new AttendeeService();
     IList<AttendeeDTO> attendeeDtos = service.GetAll();
     //Assert
     attendeeDtos.ShouldNotBeNull("Expected AttendeeDTO List Not To Be Null");
     Assert.IsInstanceOfType(attendeeDtos, typeof (IList<AttendeeDTO>));
 }
 public void GetAll_ShouldReturn_NonNull_ListOf_AttendeeDTO()
 {
     //Arrange
     _mockAttendee.Expect(x => x.GetAll()).Return(new List<AttendeeDTO> ()).Repeat.Once();
     _mockRepository.ReplayAll();
     //Act
     IAttendeeService service = new AttendeeService(_mockAttendee);
     IList<AttendeeDTO> attendeeDtos = service.GetAll();
     //Assert
     _mockRepository.VerifyAll();
     attendeeDtos.ShouldNotBeNull("Expected AttendeeDTO List Not To Be Null");
     Assert.IsInstanceOfType(attendeeDtos, typeof(IList<AttendeeDTO>));
 }
Esempio n. 3
0
 public virtual JsonResult Read_Attendees([DataSourceRequest] DataSourceRequest request)
 {
     return(Json(_attendeeService.GetAll().ToDataSourceResult(request)));
 }