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); }
public async Task DeletePlaylist(VideoSequence playlist) { playlistRepository.DeleteVideoSequence(playlist.SequenceId); }