public async Task Setup()
        {
            _chapter = ChapterBuilder.WithLibrary(LibraryId).Build();

            _response = await Client.PostString($"/libraries/{LibraryId}/books/{_chapter.BookId}/chapters/{_chapter.ChapterNumber}/contents", RandomData.String, null);

            _assert = new ChapterContentAssert(_response, Library);
        }
Beispiel #2
0
        public async Task Setup()
        {
            _chapter = ChapterBuilder.WithLibrary(LibraryId).Public().WithContents().Build();
            _content = ChapterBuilder.Contents.Single(x => x.ChapterId == _chapter.Id);

            _response = await Client.GetAsync($"/libraries/{LibraryId}/books/{_chapter.BookId}/chapters/{_chapter.ChapterNumber}/contents?language={_content.Language}");

            _assert = new ChapterContentAssert(_response, LibraryId);
        }
        public async Task Setup()
        {
            _chapter  = ChapterBuilder.WithLibrary(LibraryId).Public().Build();
            _contents = RandomData.String;

            _response = await Client.PostString($"/libraries/{LibraryId}/books/{_chapter.BookId}/chapters/{_chapter.ChapterNumber}/contents?language={RandomData.Locale}", _contents, RandomData.Locale);

            _assert = new ChapterContentAssert(_response, LibraryId);
        }
 public void ShouldHaveDeletedChapterContent()
 {
     ChapterContentAssert.ShouldHaveDeletedContent(DatabaseConnection, _content);
 }