public void When_The_Message_Is_Already_In_The_Command_Store() { _exception = Catch.Exception(() => _mysqlCommandStore.Add(_raisedCommand, _contextKey)); //_should_succeed_even_if_the_message_is_a_duplicate _exception.Should().BeNull(); _mysqlCommandStore.Exists <MyCommand>(_raisedCommand.Id, _contextKey).Should().BeTrue(); }
public void When_There_Is_No_Message_In_The_Sql_Command_Store() { Guid commandId = Guid.NewGuid(); _storedCommand = _mysqlCommandStore.Get <MyCommand>(commandId, _contextKey); //_should_return_an_empty_command_on_a_missing_command _storedCommand.Id.Should().Be(Guid.Empty); _mysqlCommandStore.Exists <MyCommand>(commandId, _contextKey).Should().BeFalse(); }
public void When_There_Is_No_Message_In_The_Sql_Command_Store_Exists() { Guid commandId = Guid.NewGuid(); _mysqlCommandStore.Exists <MyCommand>(commandId, _contextKey).Should().BeFalse(); }