public void ShouldNotDeleteVideoSequence_WhenDifferentLibraryDeleted() { var sequenceRetrieved = CreateAndRetrievePlaylist(CreateDto(otherLibrary.LibraryId)); libraryRepository.DeleteLibrary(testLibrary.LibraryId); CollectionAssert.AreEquivalent(new List <PlaylistDto>(), repository.GetDeletedPlaylistsInLibrary(otherLibrary.LibraryId, GetFirstPage(), "").Result.Results); CollectionAssert.AreEquivalent(new List <PlaylistDto>() { sequenceRetrieved }, repository.GetPlaylistsInLibrary(otherLibrary.LibraryId, GetFirstPage(), "").Result.Results); }
public async Task <PaginationResult <PlaylistDto> > GetDeletedPlaylistsInLibrary(Pagination pagination, long libraryId, string nameFilter) { return(await playlistRepository.GetDeletedPlaylistsInLibrary(libraryId, pagination, nameFilter)); }