public async Task When_There_Is_No_Message_In_The_Sql_Inbox_Get_Async() { Guid commandId = Guid.NewGuid(); var exception = await Catch.ExceptionAsync(() => _mysqlInbox.GetAsync <MyCommand>(commandId, _contextKey)); exception.Should().BeOfType <RequestNotFoundException <MyCommand> >(); }
public async Task When_Writing_A_Message_To_The_Inbox_Async() { await _mysqlInbox.AddAsync(_raisedCommand, _contextKey); _storedCommand = await _mysqlInbox.GetAsync <MyCommand>(_raisedCommand.Id, _contextKey); //_should_read_the_command_from_the__sql_inbox _storedCommand.Should().NotBeNull(); //_should_read_the_command_value _storedCommand.Value.Should().Be(_raisedCommand.Value); //_should_read_the_command_id _storedCommand.Id.Should().Be(_raisedCommand.Id); }