Esempio n. 1
0
        public void GetFutureGigsWithGenre_GigIsInThePast_ShouldNotBeReturned()
        {
            // Arrange
            var gig = new Gig()
            {
                DateTime = DateTime.Now.AddDays(-1), ArtistId = "1"
            };

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

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

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