public void GetDeletedSeries_ShouldOnlyReturnDeletedSeries()
        {
            var expectedSeries = new List <Series>();

            for (int i = 0; i < 5; ++i)
            {
                var series = CreateAndRetrieveSeries();
                repository.DeleteSeries(series.SeriesId).ConfigureAwait(false);
                expectedSeries.Add(series);
                series.Deleted = true;
            }
            CreateAndRetrieveSeries();

            var allSeries = repository.GetDeletedSeries(GetFirstPage()).Result.Results;

            CollectionAssert.AreEquivalent(expectedSeries, allSeries);
        }
Example #2
0
 public async Task <PaginationResult <Series> > GetDeletedSeries(Pagination pagination)
 {
     return(await seriesRepository.GetDeletedSeries(pagination));
 }