public void multiple_handlers_to_one_message_then_each_handler_should_handle_message_once()
        {
            var handler1 = new SameMessageHandler1();
            var handler2 = new SameMessageHandler2();

            Bus.Subscribe <TestMessage>(handler1);
            Bus.Subscribe <TestMessage>(handler2);

            Bus.Publish(new TestMessage());

            Assert.That(handler1.HandledMessages.ContainsSingle <TestMessage>());
            Assert.That(handler2.HandledMessages.ContainsSingle <TestMessage>());
        }
        public void multiple_handlers_to_one_message_then_each_handler_should_handle_message_once()
        {
            var handler1 = new SameMessageHandler1();
            var handler2 = new SameMessageHandler2();

            Bus.Subscribe<TestMessage>(handler1);
            Bus.Subscribe<TestMessage>(handler2);

            Bus.Publish(new TestMessage());

            Assert.That(handler1.HandledMessages.ContainsSingle<TestMessage>());
            Assert.That(handler2.HandledMessages.ContainsSingle<TestMessage>());
        }