public void Filter_Based_On_AlbumSongSpecification()
        {
            var specification = new AlbumSongSpecification(2);

            var songs = new SongRepository().Read(specification);

            Assert.Equal(2, songs.Count);
            Assert.Equal("Thriller", songs.First().Title);
            Assert.Equal("Billie Jean", songs.ElementAt(1).Title);
        }
        public void Filter_Based_On_FilterSongSpecification()
        {
            var specification = new FilterSongSpecification
            {
                GenreIdsToInclude = new List <int> {
                    1, 2, 3
                },
                AlbumIdsToinclude = new List <int> {
                    1, 2, 3, 5
                },
                ArtistsToInclude = new List <string> {
                    "Eagles", "Michael Jackson", "Pink Floyd"
                },
                TitleFilter = "Th",
                MinRating   = 4
            };

            var songs = new SongRepository().Read(specification);

            Assert.Equal(2, songs.Count);
            Assert.Equal("Life In The Fast Lane", songs.First().Title);
            Assert.Equal("Thriller", songs.ElementAt(1).Title);
        }