예제 #1
0
        public void GetUpcomingGigsByArtist_GigIsInThePast_ShouldNotBeReturned()
        {
            var gig = new Gig()
            {
                DateTime = DateTime.Now.AddDays(-1), ArtistId = "1"
            };

            _mockGigs.SetSource(new[] { gig });
            var gigs = _gigRepository.GetUpComingGigsByArtist("1");

            gigs.Should().BeEmpty();
        }
예제 #2
0
        public void GetUpcomingGigsByArtist_GigIsInThePast_ShouldNotBeReturned()
        {
            var gig = new Gig()
            {
                DateTime = DateTime.Now.AddDays(-1), ArtistId = "1"
            };


            //Arrange
            _mockGigs.SetSource(new List <Gig> {
                gig
            });


            //Act
            var gigs = _repository.GetUpComingGigsByArtist("1");

            //Assert
            gigs.Should().BeEmpty();
        }