コード例 #1
0
        public void Should_properly_register_the_consumers_for_each_endpoint()
        {
            var firstComponent = new FirstComponent();

            LocalBus.SubscribeInstance(firstComponent);

            var secondComponent = new SecondComponent();

            LocalBus.SubscribeInstance(secondComponent);

            RemoteBus.ShouldHaveSubscriptionFor <IncomingMessage>();

            RemoteBus.ShouldHaveCorrelatedSubscriptionFor <IncomingMessage, string>(FirstCorrelationId);
            RemoteBus.ShouldHaveCorrelatedSubscriptionFor <IncomingMessage, string>(SecondCorrelationId);
        }