private IPage MakeTemplatePageThatHasABookWithStylesheets(TemporaryFolder bookFolder, IEnumerable<string> stylesheetNames )
{
var headContents = "";
foreach(var stylesheetName in stylesheetNames)
{
headContents += "<link rel='stylesheet' href='"+stylesheetName+"' type='text/css'></link>";
}
var templateDom =
new HtmlDom("<html><head>" + headContents + "</head><body><div class='bloom-page' id='1'></div></body></html>");
var templateBook = new Moq.Mock<Bloom.Book.Book>();
templateBook.Setup(x => x.FolderPath).Returns(bookFolder.FolderPath);
templateBook.Setup(x => x.OurHtmlDom).Returns(templateDom);
Mock<IPage> templatePage = CreateTemplatePage("<div class='bloom-page' id='1'></div>");
templatePage.Setup(x => x.Book).Returns(templateBook.Object);
return templatePage.Object;
}