private ZipFile MakeEpub(string mainFileName, string folderName, Bloom.Book.Book book)
{
var epubFolder = new TemporaryFolder(folderName);
var epubName = mainFileName + ".epub";
var epubPath = Path.Combine(epubFolder.FolderPath, epubName);
using (var maker = CreateEpubMaker(book))
{
maker.Unpaginated = true; // Currently we always make unpaginated epubs.
maker.SaveEpub(epubPath);
}
Assert.That(File.Exists(epubPath));
_epub= new ZipFile(epubPath);
_manifestFile = GetManifestFile(_epub);
_manifestContent = StripXmlHeader(GetZipContent(_epub, _manifestFile));
_manifestDoc = XDocument.Parse(_manifestContent);
GetPageOneData();
return _epub;
}