Ejemplo n.º 1
0
        public void GetPlaylists_ShouldntReturnDeletedPlaylists()
        {
            var expectedPlaylists = new List <PlaylistDto>();

            for (int i = 0; i < 5; ++i)
            {
                var sequence = CreateAndRetrievePlaylist();
                expectedPlaylists.Add(sequence);
            }
            var deletedPlaylist = CreateAndRetrievePlaylist();

            repository.DeleteVideoSequence(deletedPlaylist.SequenceId);
            deletedPlaylist.Deleted = true;

            var sequences = repository.GetPlaylistsInLibrary(testLibrary.LibraryId, GetFirstPage(), "").Result.Results;

            CollectionAssert.AreEquivalent(expectedPlaylists, sequences);
        }
Ejemplo n.º 2
0
 public async Task DeletePlaylist(VideoSequence playlist)
 {
     playlistRepository.DeleteVideoSequence(playlist.SequenceId);
 }