File size: 1,352 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
using VersOne.Epub.Test.Unit.Mocks;
using static VersOne.Epub.Test.Unit.TestData.TestEpubData;

namespace VersOne.Epub.Test.Unit.TestData
{
    internal static class TestEpubBookRefs
    {
        public static EpubBookRef CreateMinimalTestEpubBookRef(TestZipFile epubFile, string epubFilePath)
        {
            return new
            (
                epubFile: epubFile,
                filePath: epubFilePath,
                title: String.Empty,
                author: String.Empty,
                authorList: new List<string>(),
                description: null,
                schema: TestEpubSchemas.CreateMinimalTestEpubSchema(),
                content: TestEpubContentRef.CreateMinimalTestEpubContentRefWithNavigation()
            );
        }

        public static EpubBookRef CreateFullTestEpubBookRef(TestZipFile epubFile, string? epubFilePath)
        {
            return new
            (
                epubFile: epubFile,
                filePath: epubFilePath,
                title: BOOK_TITLE,
                author: BOOK_AUTHOR,
                authorList: new List<string> { BOOK_AUTHOR },
                description: BOOK_DESCRIPTION,
                schema: TestEpubSchemas.CreateFullTestEpubSchema(),
                content: TestEpubContentRef.CreateFullTestEpubContentRef()
            );
        }
    }
}