Example #1
0
        public async Task publish_an_event_should_publish_an_event_to_the_message_transport()
        {
            await bus.Start();

            var message = new CatEvent();

            await bus.Publish(message);

            await messageTransport.Received().Publish(message, bus.MessageTypeToNamePublishingEventMap[message.GetType()]);
        }