public async Task DeleteSeries(Series series) { await seriesRepository.DeleteSeries(series.SeriesId); }
public void GetSeries_ShouldntReturnDeletedSeries() { var expectedSeries = new List <Series>(); for (int i = 0; i < 5; ++i) { var series = CreateAndRetrieveSeries(); expectedSeries.Add(series); } var deletedSeries = CreateAndRetrieveSeries(); repository.DeleteSeries(deletedSeries.SeriesId).ConfigureAwait(false); var allSeries = repository.GetSeries(GetFirstPage()).Result.Results; CollectionAssert.AreEquivalent(expectedSeries, allSeries); }