public void When_The_Message_Is_Already_In_The_Inbox()
        {
            _pgSqlInbox.Add(_raisedCommand, _contextKey);

            _exception = Catch.Exception(() => _pgSqlInbox.Add(_raisedCommand, _contextKey));

            //_should_succeed_even_if_the_message_is_a_duplicate
            _exception.Should().BeNull();
            _pgSqlInbox.Exists <MyCommand>(_raisedCommand.Id, _contextKey).Should().BeTrue();
        }
        public SqlInboxAddMessageTests()
        {
            _pgTestHelper = new PostgresSqlTestHelper();
            _pgTestHelper.SetupCommandDb();

            _pgSqlInbox    = new PostgresSqlInbox(_pgTestHelper.InboxConfiguration);
            _raisedCommand = new MyCommand {
                Value = "Test"
            };
            _contextKey = "context-key";
            _pgSqlInbox.Add(_raisedCommand, _contextKey);
        }