public NoOutboxReadTests() { _noOpStore = new NoOpOutbox(); var messageEarliest = new Message(new MessageHeader(Guid.NewGuid(), "test_topic", MessageType.MT_DOCUMENT), new MessageBody("message body")); _noOpStore.Add(messageEarliest); }
public void When_writing_to_noopstore() { _exception = Catch.Exception(() => _noOpStore.Add(_messageEarliest)); //_should_not_cause_exception _exception.Should().BeNull(); }