public void Cancel_GigUsCancel_ShouldReturnNotFound() { var gig = new Gigs(); gig.Cancel(); _mockRepository.Setup(r => r.GetGigWithAttendees(1)).Returns(gig); var result = _gigsController.Cancel(1); result.Should().BeOfType <NotFoundResult>(); }
public void GetUpComingGigsByArtist_GigIsCanceled_ShoudNotBeReturned() { var gig = new Gigs { DateTime = DateTime.Now.AddDays(1), ArtistId = "1" }; gig.Cancel(); _mockGigs.SetSource(new[] { gig }); var gigs = _gigRespository.GetUpComingGigsByArtist("1"); gigs.Should().BeEmpty(); }