コード例 #1
0
        public void GetUpcomingGigsByArtist_GigIsInThePast_ShouldNotBeReturned()
        {
            var gig = new Gig()
            {
                DateTime = DateTime.Now.AddDays(-1),
                ArtistId = _userId
            };

            _mockGigs.SetSource(new[] { gig });

            var gigs = _repository.GetUsersActiveFutureGigsWithGenre(_userId);

            gigs.Should().BeEmpty();
        }