示例#1
0
        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);
        }
示例#2
0
 public async Task <PaginationResult <PlaylistDto> > GetDeletedPlaylistsInLibrary(Pagination pagination, long libraryId, string nameFilter)
 {
     return(await playlistRepository.GetDeletedPlaylistsInLibrary(libraryId, pagination, nameFilter));
 }