public IEnumerable <Genre> SearchLocalGenres(string value)
        {
            var genres = _genreRepository.Get();

            var query = new MusicEntityPartialSearchQuery();

            return(query.AsExpression(genres, value));
        }
        public IEnumerable <Album> SearchLocalAlbums(string value)
        {
            var albums = _albumRepository.Get();

            var query = new MusicEntityPartialSearchQuery();

            return(query.AsExpression(albums, value));
        }
        public IEnumerable <Artist> SearchLocalArtists(string value)
        {
            var artists = _artistRepository.Get();

            var query = new MusicEntityPartialSearchQuery();

            return(query.AsExpression(artists, value));
        }
        public IEnumerable <Song> SearchLocalSongs(string value)
        {
            var songs = _songRepository.Get();

            var query = new MusicEntityPartialSearchQuery();

            return(query.AsExpression(songs, value));
        }
        public void AsExpression_SongList_ReturnsPartialMatchingSongs()
        {
            var songs = new List <Song>
            {
                new Song {
                    Name = "Bobs Revenge"
                },
                new Song {
                    Name = "John's Dud"
                }
            };

            var result = _query.AsExpression(songs, "Bob");

            const int expected = 1;

            Assert.AreEqual(expected, result.Count);
        }