public void Setup() { IContext parentContext = new Context().Install(typeof(EventDispatcherExtension)); IContext childAContext = new Context().Install(typeof(EventDispatcherExtension)); IContext childBContext = new Context().Install(typeof(EventDispatcherExtension)); parentContext.AddChild(childAContext); parentContext.AddChild(childBContext); parentConnector = new ModuleConnector(parentContext); childAConnector = new ModuleConnector(childAContext); childBConnector = new ModuleConnector(childBContext); parentDispatcher = parentContext.injector.GetInstance(typeof(IEventDispatcher)) as IEventDispatcher; childADispatcher = childAContext.injector.GetInstance(typeof(IEventDispatcher)) as IEventDispatcher; childBDispatcher = childBContext.injector.GetInstance(typeof(IEventDispatcher)) as IEventDispatcher; }
public void Setup() { IContext parentContext = new Context().Install(typeof(EventDispatcherExtension)); IContext childAContext = new Context().Install(typeof(EventDispatcherExtension)); IContext childBContext = new Context().Install(typeof(EventDispatcherExtension)); parentContext.AddChild(childAContext); parentContext.AddChild(childBContext); parentConnector = new ModuleConnector(parentContext); childAConnector = new ModuleConnector(childAContext); childBConnector = new ModuleConnector(childBContext); parentDispatcher = parentContext.injector.GetInstance(typeof(IEventDispatcher)) as IEventDispatcher; childADispatcher = childAContext.injector.GetInstance(typeof(IEventDispatcher)) as IEventDispatcher; childBDispatcher = childBContext.injector.GetInstance(typeof(IEventDispatcher)) as IEventDispatcher; }