Example #1
0
        public void Testout()
        {
            ConfigurationLayer cl = new ConfigurationLayer();

            ConfigurationItem item1 = new ConfigurationItem();

            cl.Items.AddConfigurationItem("plugin1", ConfigurationStatus.Running);

            Assert.That(item1.Status == ConfigurationStatus.Running);
            Assert.That(item1.ServiceOrPluginName == "plugin1");

            ConfigurationItem item2 = new ConfigurationItem();

            cl.Items.AddConfigurationItem("service1", ConfigurationStatus.Running);

            Assert.That(item1.Status == ConfigurationStatus.Running);
            Assert.That(item1.ServiceOrPluginName == "service1");

            ConfigurationManager cm = new ConfigurationManager();

            cm.AddLayer(cl);

            Objectgraph Og = new ObjectGraph(cm);

            Og.Resolve();

            Og.Release();
        }
Example #2
0
        public void Testout()
        {
            ConfigurationLayer cl = new ConfigurationLayer();

            ConfigurationItem item1 = new ConfigurationItem();
            cl.Items.AddConfigurationItem("plugin1", ConfigurationStatus.Running);

            Assert.That( item1.Status == ConfigurationStatus.Running );
            Assert.That( item1.ServiceOrPluginName == "plugin1" );

            ConfigurationItem item2 = new ConfigurationItem();
            cl.Items.AddConfigurationItem( "service1", ConfigurationStatus.Running );

            Assert.That( item1.Status == ConfigurationStatus.Running );
            Assert.That( item1.ServiceOrPluginName == "service1" );

            ConfigurationManager cm = new ConfigurationManager();

            cm.AddLayer( cl );

            Objectgraph Og = new ObjectGraph( cm );

            Og.Resolve();

            Og.Release();
        }