示例#1
0
        protected static void SetupScopingEventBrokerWith(EventScopingStandardFactory scopingStandardFactory)
        {
            publisher  = new Publisher();
            subscriber = new Subscriber();

            scopeContext = scopingStandardFactory.CreateScopeContext();

            eventBroker = new EventBroker(scopingStandardFactory);

            eventBroker.Register(publisher);
            eventBroker.Register(subscriber);
        }
示例#2
0
        public void CreateScopeContext_CreatesScopeHolderOfType(IEventScopeFactory factory, Type scopeType)
        {
            IEventScopeContext scopeContext = factory.CreateScopeContext();

            scopeContext.GetType().Should().Be(scopeType);
        }