public void GetDeletedSeriesByPublisher_WithNoDeletedSeries()
        {
            var publisherId    = publisherRepository.CreatePublisher(new CreatePublisherDto("test", "", -1, "", testLibrary.LibraryId));
            var seriesToCreate = new CreateSeriesDto("Test library", "https://ingvilt.test.url", -1, "test desc", publisherId, testLibrary.LibraryId);

            repository.CreateSeries(seriesToCreate);

            var allSeries = repository.GetDeletedSeriesByPublisher(publisherId, GetFirstPage()).Result.Results;

            CollectionAssert.AreEquivalent(new List <Series>(), allSeries);
        }
Beispiel #2
0
 public async Task <PaginationResult <Series> > GetDeletedSeriesByPublisher(Pagination pagination, long publisherId)
 {
     return(await seriesRepository.GetDeletedSeriesByPublisher(publisherId, pagination));
 }