public void GetDeletedSeriesInLibrary_ShouldOnlyReturnDeletedSeries() { var expectedSeries = new List <Series>(); for (int i = 0; i < 3; ++i) { var series = CreateAndRetrieveSeries(); repository.DeleteSeries(series.SeriesId).ConfigureAwait(false); expectedSeries.Add(series); series.Deleted = true; } CreateAndRetrieveSeries(); var allSeries = repository.GetDeletedSeriesInLibrary(testLibrary.LibraryId, GetFirstPage(), "").Result.Results; CollectionAssert.AreEquivalent(expectedSeries, allSeries); }
public async Task <PaginationResult <Series> > GetDeletedSeriesInLibrary(Pagination pagination, long libraryId, string nameFilter) { return(await seriesRepository.GetDeletedSeriesInLibrary(libraryId, pagination, nameFilter)); }