Example #1
0
        public void RegisterTreeNode()
        {
            TreeNodeFactory.Register(typeof(MyConfigurationNode), typeof(MyConfigurationTreeNode));
            MyConfigurationNode   node     = new MyConfigurationNode("test");
            ConfigurationTreeNode treeNode = TreeNodeFactory.Create(node);

            Assert.AreEqual(typeof(MyConfigurationTreeNode), treeNode.GetType());
        }
Example #2
0
        public override void WarmUpAllFactories()
        {
            //m_ObiNodeFactory.createNode()
            TreeNodeFactory.Create <ObiRootNode>();
            TreeNodeFactory.Create <PhraseNode>();
            TreeNodeFactory.Create <SectionNode>();
            TreeNodeFactory.Create <EmptyNode>();

            base.WarmUpAllFactories();
        }