public void SetUp()
 {
     translations   = new MarkdownLanguage().GetTranslations;
     tagTranslator  = new MarkdownToHtmlTagTranslator(translations);
     nodeTranslator = new MarkdownNodeTranslator(tagTranslator);
     treeTranslator = new MarkdownTokenTreeTranslator(nodeTranslator);
     treeBuilder    = TestTreeBuilder.Tree();
 }
Пример #2
0
        public void SetUp()
        {
            var language = new MarkdownLanguage();

            var parser         = new MarkdownTokenParser(language.GetAllTags);
            var tagTranslator  = new MarkdownToHtmlTagTranslator(language.GetTranslations);
            var nodeTranslator = new MarkdownNodeTranslator(tagTranslator);
            var treeTranslator = new MarkdownTokenTreeTranslator(nodeTranslator);
            var treeBuilder    = new MarkdownTokenTreeBuilder(language.GetTagsInfo);

            markdown = new Markdown.Markdown(parser, treeTranslator, treeBuilder);
        }