Пример #1
0
        public SpecialContentTests()
        {
            var shortcodeProvider = new ShortcodeProvider();

            shortcodeProvider.Add <DummyShortcode>();
            shortcodeProvider.Add <DummySmallShortcode>(tag: "dummy-small");
            shortcodeProvider.Add <DummyMediumShortcode>(tag: "dummy-medium");
            shortcodeProvider.Add <DummyHardShortcode>(tag: "dummy-hard");
            shortcodeProvider.Add <DummyAdvancedShortcode>(tag: "dummy-advanced");

            _shortcodeParser = new ShortcodeParser(shortcodeProvider);
        }
Пример #2
0
        public DummyShortcodeTests()
        {
            var shortcodeProvider = new ShortcodeProvider();

            shortcodeProvider.Add <DummyShortcode>();
            shortcodeProvider.Add <DummySmallShortcode>(tag: "dummy-small");
            shortcodeProvider.Add <DummyMediumShortcode>(tag: "dummy-medium");
            shortcodeProvider.Add <DummyHardShortcode>(tag: "dummy-hard");
            shortcodeProvider.Add <DummyAdvancedShortcode>(tag: "dummy-advanced");
            shortcodeProvider.Add <DummyListShortcode>(tag: "dummy-list");
            shortcodeProvider.Add <DummyListItemShortcode>(tag: "dummy-list-item");

            _shortcodeParser = new ShortcodeParser(shortcodeProvider);
        }
 static ShortcodeConfiguration()
 {
     Provider      = new ShortcodeProvider();
     ParserFactory = new ShortcodeParserFactory();
 }