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;
            }
Example #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);
            }