public async Task Setup()
        {
            var series = SeriesBuilder.WithLibrary(LibraryId).Build(4);

            _expected = series.PickRandom();

            _response = await Client.GetAsync($"/libraries/{LibraryId}/series/{_expected.Id}");

            _assert = SeriesAssert.WithResponse(_response).InLibrary(LibraryId);
        }
        public async Task Setup()
        {
            var series = new SeriesView {
                Name = RandomData.Name
            };

            _response = await Client.PostObject($"/libraries/{LibraryId}/series", series);

            _assert = SeriesAssert.WithResponse(_response).InLibrary(LibraryId);
        }
        public async Task Setup()
        {
            var series = SeriesBuilder.WithLibrary(LibraryId).WithBooks(3).Build(4);

            var selectedSeries = series.PickRandom();

            _expected = new SeriesView {
                Name = RandomData.Name
            };

            _response = await Client.PutObject($"/libraries/{LibraryId}/series/{selectedSeries.Id}", _expected);

            _assert = SeriesAssert.WithResponse(_response).InLibrary(LibraryId);
        }
 public void ShouldHaveUpdatedSeriesImage()
 {
     SeriesAssert.ShouldHaveUpdatedSeriesImage(_seriesId, _newImage, DatabaseConnection, FileStore);
 }
 public void ShouldNotHaveDeletedTheSeries()
 {
     SeriesAssert.ShouldNotHaveDeletedSeries(_expected.SeriesId.Value, DatabaseConnection);
 }
Exemplo n.º 6
0
 public void ShouldSavePublicImage()
 {
     SeriesAssert.ShouldHavePublicImage(_seriesId, DatabaseConnection);
 }
Exemplo n.º 7
0
 public void ShouldHaveAddedImageToSeries()
 {
     SeriesAssert.ShouldHaveAddedSeriesImage(_seriesId, DatabaseConnection, FileStore);
 }
Exemplo n.º 8
0
        public void ShouldHaveLocationHeader()
        {
            var seriesAssert = SeriesAssert.WithResponse(_response).InLibrary(LibraryId);

            seriesAssert.ShouldHaveCorrectImageLocationHeader(_seriesId);
        }
Exemplo n.º 9
0
 public void ShouldHaveDeletedTheSeriesImage()
 {
     SeriesAssert.ShouldHaveDeletedSeriesImage(_expected.Id, DatabaseConnection);
 }