public void Setup() { this.AddFakeFolderStructures(); Tree features = Container.Resolve<DirectoryTreeCrawler>().Crawl(RootPath); var formatter = new HtmlTableOfContentsFormatter(null, this.FileSystem); this.toc = formatter.Format( features.ChildNodes[0].Data.OriginalLocationUrl, features, FileSystem.DirectoryInfo.FromDirectoryName(RootPath)); }
public HtmlDocumentFormatter( IConfiguration configuration, HtmlHeaderFormatter htmlHeaderFormatter, HtmlTableOfContentsFormatter htmlTableOfContentsFormatter, HtmlContentFormatter htmlContentFormatter, HtmlFooterFormatter htmlFooterFormatter, HtmlResourceSet htmlResources, IFileSystem fileSystem) { this.configuration = configuration; this.htmlHeaderFormatter = htmlHeaderFormatter; this.htmlTableOfContentsFormatter = htmlTableOfContentsFormatter; this.htmlContentFormatter = htmlContentFormatter; this.htmlFooterFormatter = htmlFooterFormatter; this.htmlResources = htmlResources; this.fileSystem = fileSystem; }
public HtmlDocumentFormatter( IConfiguration configuration, HtmlHeaderFormatter htmlHeaderFormatter, HtmlTableOfContentsFormatter htmlTableOfContentsFormatter, HtmlContentFormatter htmlContentFormatter, HtmlFooterFormatter htmlFooterFormatter, HtmlResourceSet htmlResources, IFileSystem fileSystem) { this.configuration = configuration; this.htmlHeaderFormatter = htmlHeaderFormatter; this.htmlTableOfContentsFormatter = htmlTableOfContentsFormatter; this.htmlContentFormatter = htmlContentFormatter; this.htmlFooterFormatter = htmlFooterFormatter; this.htmlResources = htmlResources; this.fileSystem = fileSystem; }