public async Task When_Posting_With_An_In_Memory_Outbox_Async() { await _commandProcessor.PostAsync(_myCommand); var message = await _outbox.GetAsync(_myCommand.Id); //_should_store_the_message_in_the_sent_command_message_repository message.Should().NotBeNull(); //_should_send_a_message_via_the_messaging_gateway _fakeMessageProducer.MessageWasSent.Should().BeTrue(); //_should_convert_the_command_into_a_message message.Should().Be(_message); }