Exemplo n.º 1
0
 public HtmlDocumentFormatter(Configuration configuration, HtmlHeaderFormatter htmlHeaderFormatter, HtmlTableOfContentsFormatter htmlTableOfContentsFormatter, HtmlContentFormatter htmlContentFormatter, HtmlFooterFormatter htmlFooterFormatter, HtmlResourceSet htmlResources)
 {
     this.configuration = configuration;
     this.htmlHeaderFormatter = htmlHeaderFormatter;
     this.htmlTableOfContentsFormatter = htmlTableOfContentsFormatter;
     this.htmlContentFormatter = htmlContentFormatter;
     this.htmlFooterFormatter = htmlFooterFormatter;
     this.htmlResources = htmlResources;
 }
Exemplo n.º 2
0
 public HtmlDocumentFormatter(Configuration configuration, HtmlHeaderFormatter htmlHeaderFormatter,
                              HtmlTableOfContentsFormatter htmlTableOfContentsFormatter,
                              HtmlContentFormatter htmlContentFormatter, HtmlFooterFormatter htmlFooterFormatter,
                              HtmlResourceSet htmlResources)
 {
     this.configuration                = configuration;
     this.htmlHeaderFormatter          = htmlHeaderFormatter;
     this.htmlTableOfContentsFormatter = htmlTableOfContentsFormatter;
     this.htmlContentFormatter         = htmlContentFormatter;
     this.htmlFooterFormatter          = htmlFooterFormatter;
     this.htmlResources                = htmlResources;
 }
Exemplo n.º 3
0
        public void Format_ContentIsFeatureNode_UsesHtmlFeatureFormatterWithCorrectArgument()
        {
            var fakeHtmlFeatureFormatter = new Mock<IHtmlFeatureFormatter>();
            var formatter = new HtmlContentFormatter(fakeHtmlFeatureFormatter.Object, Kernel.Get<HtmlIndexFormatter>());

            var featureNode = new FeatureDirectoryTreeNode(
                new FileInfo(@"c:\temp\test.feature"),
                ".",
                new Feature());

            formatter.Format(featureNode, new IDirectoryTreeNode[0]);

            fakeHtmlFeatureFormatter.Verify(f => f.Format(featureNode.Feature));
        }