public void Insert_ShouldReturn_NonNull_Boolean() { //Act IWinnerService service = new WinnerService(); bool result = service.Insert(new WinnerDTO()); //Assert Assert.IsInstanceOfType(result, typeof (bool)); }
public void Insert_ShouldReturn_NonNull_Boolean() { using (new TransactionScope()) { //Arrange long attendeeID = new AttendeeService().GetAll()[0].AttendeeID; long sponsorID = new SponsorService().GetAllThatProvidedSwag()[0].SponsorID; long swagID = new SwagService().GetAllBySponsor(sponsorID)[0].SwagID; //Act IWinnerService service = new WinnerService(); bool result = service.Insert(new WinnerDTO {AttendeeID = attendeeID, SponsorID = sponsorID, SwagID = swagID, Name = "Big Winner",}); //Assert Assert.IsInstanceOfType(result, typeof (bool)); } }