Пример #1
0
        public void BuildAllInstances()
        {
            DataMother.WriteDocument("FullTesting.XML");

            PluginGraph pluginGraph = DataMother.GetDiagnosticPluginGraph("SampleConfig.xml");

            var manager = new Container(pluginGraph);

            IList list = manager.GetAllInstances(typeof(IWidget));

            Assert.AreEqual(9, list.Count);

            foreach (object target in list)
            {
                Assert.IsTrue(target is IWidget);
            }
        }
 public void Smoke_test_error_report_on_InstanceManager()
 {
     PluginGraph graph = DataMother.GetDiagnosticPluginGraph("Invalid.config");
 }
        public void PicksUpTheDefaultProfileAttributeOnTheStructureMapNodeAndSetsTheProfile()
        {
            PluginGraph graph = DataMother.GetDiagnosticPluginGraph("DefaultProfileConfig.xml");

            Assert.AreEqual("Green", graph.ProfileManager.DefaultProfileName);
        }
 private PluginGraph buildGraph()
 {
     return(DataMother.GetDiagnosticPluginGraph("Master.xml"));
 }