Exemplo n.º 1
0
        public void When_The_Message_Is_Already_In_The_Inbox()
        {
            _exception = Catch.Exception(() => _sqlInbox.Add(_raisedCommand, _contextKey));

            //_should_succeed_even_if_the_message_is_a_duplicate
            _exception.Should().BeNull();
            _sqlInbox.Exists <MyCommand>(_raisedCommand.Id, _contextKey).Should().BeTrue();
        }
Exemplo n.º 2
0
        public void When_There_Is_No_Message_In_The_Sql_Inbox_And_Call_Exists()
        {
            Guid commandId = Guid.NewGuid();

            _sqlInbox.Exists <MyCommand>(commandId, _contextKey).Should().BeFalse();
        }