Beispiel #1
0
        public async Task start_a_publish_and_send_only_bus_should_initialize_publishing_but_skip_receiving()
        {
            messageTransport.IsPublishAndSendOnly.Returns(true);

            await bus.Start();

            await messageTransport.ReceivedWithAnyArgs().InitializePublishingEndpoint();

            await messageTransport.DidNotReceiveWithAnyArgs().InitializeReceivingEndpoint();

            await messageTransport.DidNotReceiveWithAnyArgs().StartReceivingMessages(Arg.Any <MessageHandlerExecutor>());
        }