public void AddSamePlugins() { var setup = new AppSetup(); setup.AddPlugin(new TestPlugs()); setup.AddPlugin(new TestPlugs()); Assert.AreEqual(1, setup.Plugins.Count()); }
public void AddDifferentPlugins() { var setup = new AppSetup(); setup.AddPlugin(new TestPlugs()); setup.AddPlugin(new Test2Plugs()); Assert.AreEqual(2, setup.Plugins.Count()); }
public void InvokePluginsWhenStart() { var setup = new AppSetup(); setup.AddPlugin(new TestPlugs()); var app = setup.Start(new ThisAppModule()); List <Type> builderTypeList = (List <Type>)setup.Context[CONTEXT_KEY_BUILDER_TYPES]; Assert.AreEqual(3, builderTypeList.Count); List <Type> moduleTypeList = (List <Type>)setup.Context[CONTEXT_KEY_MODULE_TYPES]; Assert.AreEqual(4, moduleTypeList.Count); }