public EventFiredHandlerDecorator Initialize(EventFiredHandlerDecorator localHandler)
            {
                this.decorator = new EventFiredHandlerDecorator();

                // With the unit test factory everything becomes synchronous
                this.remoteEventBroker = new EventBroker(new UnitTestFactory());
                this.remoteEventBroker.AddDistributedExtension(new FakeDistributedEventBrokerExtension(new FakeEventBrokerBus(localHandler)));

                this.remoteSubscriberAndPublisher = new RemoteSubscriberAndPublisher();
                this.remoteEventBroker.Register(this.remoteSubscriberAndPublisher);

                return this.decorator;
            }
예제 #2
0
            public EventFiredHandlerDecorator Initialize(EventFiredHandlerDecorator localHandler)
            {
                this.decorator = new EventFiredHandlerDecorator();

                // With the unit test factory everything becomes synchronous
                this.remoteEventBroker = new EventBroker(new UnitTestFactory());
                this.remoteEventBroker.AddDistributedExtension(new FakeDistributedEventBrokerExtension(new FakeEventBrokerBus(localHandler)));

                this.remoteSubscriberAndPublisher = new RemoteSubscriberAndPublisher();
                this.remoteEventBroker.Register(this.remoteSubscriberAndPublisher);

                return(this.decorator);
            }
 public FakeEventBrokerBus(EventFiredHandlerDecorator eventFiredHandler)
 {
     this.eventFiredHandler = eventFiredHandler;
 }
예제 #4
0
 public FakeEventBrokerBus(EventFiredHandlerDecorator eventFiredHandler)
 {
     this.eventFiredHandler = eventFiredHandler;
 }