コード例 #1
0
        public void GetUpComminGigsByArtist_GigIsInThePast_ShouldNotBeReturned()
        {
            //Arrange
            var gig = new Gig {
                DateTime = DateTime.Now.AddDays(-1), ArtistId = "1"
            };
            var source = new List <Gig>()
            {
                gig
            };

            _mockGigs.SetSource(source);

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

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