BloomTests.Publish.ExportEpubTests.MakeEpub C# (CSharp) Method

MakeEpub() private method

Make an ePUB out of the specified book. Sets up several instance variables with commonly useful parts of the results.
private MakeEpub ( string mainFileName, string folderName, Bloom book ) : ZipFile
mainFileName string
folderName string
book Bloom
return ICSharpCode.SharpZipLib.Zip.ZipFile
        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;
        }