public void When_Posting_With_An_In_Memory_Message_Store()
        {
            _commandProcessor.Post(_myCommand);

            //_should_store_the_message_in_the_sent_command_message_repository
            _messageStore.Get(_myCommand.Id).Should().NotBeNull();
            //_should_send_a_message_via_the_messaging_gateway
            _fakeMessageProducer.MessageWasSent.Should().BeTrue();
            // _should_convert_the_command_into_a_message
            _messageStore.Get(_myCommand.Id).Should().Be(_message);
        }
        public void When_Posting_With_An_In_Memory_Message_Store()
        {
            _commandProcessor.Post(_myCommand);

            //_should_store_the_message_in_the_sent_command_message_repository
            Assert.NotNull(_messageStore.Get(_myCommand.Id));
            //_should_send_a_message_via_the_messaging_gateway
            Assert.True(_fakeMessageProducer.MessageWasSent);
            // _should_convert_the_command_into_a_message
            Assert.AreEqual(_message, _messageStore.Get(_myCommand.Id));
        }