Example #1
0
 public ChapterContentAssert(HttpResponseMessage response, LibraryDto library)
 {
     _response       = response;
     _libraryId      = library.Id;
     _library        = library;
     _chapterContent = response.GetContent <ChapterContentView>().Result;
 }
Example #2
0
 public static ChapterContentModel Map(this ChapterContentView source)
 => new ChapterContentModel
 {
     Id            = source.Id,
     ChapterId     = source.ChapterId,
     ChapterNumber = source.ChapterNumber,
     BookId        = source.BookId,
     Language      = source.Language,
     Text          = source.Text
 };