public void Setup()
        {
            GeneralTree <IDirectoryTreeNode> features = Kernel.Get <DirectoryTreeCrawler>().Crawl(ROOT_PATH);

            var formatter = new HtmlTableOfContentsFormatter();

            _toc = formatter.Format(features.ChildNodes[0].Data.OriginalLocationUrl, features,
                                    new DirectoryInfo(ROOT_PATH));
        }
Ejemplo n.º 2
0
        public void Setup()
        {
            GeneralTree <INode> features = Container.Resolve <DirectoryTreeCrawler>().Crawl(ROOT_PATH);

            var formatter = new HtmlTableOfContentsFormatter(null, RealFileSystem);

            this._toc = formatter.Format(features.ChildNodes[0].Data.OriginalLocationUrl, features,
                                         MockFileSystem.DirectoryInfo.FromDirectoryName(ROOT_PATH));
        }
Ejemplo n.º 3
0
        public void Setup()
        {
            this.AddFakeFolderStructures();

            GeneralTree <INode> 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));
        }