コード例 #1
0
        public void It_should_be_received_by_a_component()
        {
            RemoteBus.SubscribeConsumer <TestMessageConsumer <PingMessage> >();

            LocalBus.ShouldHaveSubscriptionFor <PingMessage>();

            var message = new PingMessage();

            LocalBus.Publish(message);

            TestConsumerBase <PingMessage> .AnyShouldHaveReceivedMessage(message, _timeout);
        }