Example #1
0
 public void GetAllBySponsor_ShouldReturn_NonNull_ListOf_SponsorDTO()
 {
     //Act
     ISwagService service = new SwagService();
     IList<SwagDTO> swags = service.GetAllBySponsor(11);
     //Assert
     swags.ShouldNotBeNull("Expected Not Null");
     Assert.IsInstanceOfType(swags, typeof (IList<SwagDTO>));
 }
Example #2
0
 public void GetAllBySponsor_ShouldReturn_NonNull_ListOf_SponsorDTO()
 {
     //Arrange
     _mockDomain.Expect(x => x.GetAllBySponsor(11)).Return(new List<SwagDTO>()).Repeat.Once();
     _mockRepository.ReplayAll();
     //Act
     ISwagService service = new SwagService(_mockDomain);
     IList<SwagDTO> swags = service.GetAllBySponsor(11);
     //Assert
     _mockRepository.VerifyAll();
     swags.ShouldNotBeNull("Expected Not Null");
     Assert.IsInstanceOfType(swags, typeof(IList<SwagDTO>));
 }