File size: 2,257 Bytes
fab29d7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
using static VersOne.Epub.Test.Unit.TestData.TestEpubData;
namespace VersOne.Epub.Test.Unit.TestData
{
internal static class TestEpubBooks
{
public static EpubBook CreateMinimalTestEpubBook(string epubFilePath)
{
return new
(
filePath: epubFilePath,
title: String.Empty,
author: String.Empty,
authorList: new List<string>(),
description: null,
coverImage: null,
readingOrder: new List<EpubLocalTextContentFile>(),
navigation: new List<EpubNavigationItem>(),
schema: TestEpubSchemas.CreateMinimalTestEpubSchema(),
content: TestEpubContent.CreateMinimalTestEpubContentWithNavigation()
);
}
public static EpubBook CreateMinimalTestEpub2BookWithoutNavigation(string epubFilePath)
{
return new
(
filePath: epubFilePath,
title: String.Empty,
author: String.Empty,
authorList: new List<string>(),
description: null,
coverImage: null,
readingOrder: new List<EpubLocalTextContentFile>(),
navigation: null,
schema: TestEpubSchemas.CreateMinimalTestEpub2SchemaWithoutNavigation(),
content: new EpubContent()
);
}
public static EpubBook CreateFullTestEpubBook(string? epubFilePath, bool populateRemoteFilesContents)
{
return new
(
filePath: epubFilePath,
title: BOOK_TITLE,
author: BOOK_AUTHOR,
authorList: new List<string> { BOOK_AUTHOR },
description: BOOK_DESCRIPTION,
coverImage: TestEpubFiles.COVER_FILE_CONTENT,
readingOrder: TestEpubReadingOrder.CreateFullTestEpubReadingOrder(),
navigation: TestEpubNavigation.CreateFullTestEpubNavigation(),
schema: TestEpubSchemas.CreateFullTestEpubSchema(),
content: TestEpubContent.CreateFullTestEpubContent(populateRemoteFilesContents)
);
}
}
}
|