예제 #1
0
        public void GetAllPlaylistTest()
        {
            var res = _playlistRepository.GetAllPlaylists();

            Assert.NotNull(res);
            var collection = res as IList <Playlist> ?? res.ToList();

            Assert.IsNotEmpty(collection);
            Assert.AreEqual(2, collection.Count());
        }
 public IEnumerable <Playlist> GetAllPlaylists()
 {
     return(_playlistRepository.GetAllPlaylists());
 }