public async void When_There_Is_No_Message_In_The_Sql_Inbox() { var exception = await Catch.ExceptionAsync(() => _dynamoDbInbox.GetAsync <MyCommand>(Guid.NewGuid(), "some key")); AssertionExtensions.Should((object)exception).BeOfType <RequestNotFoundException <MyCommand> >(); }
public async Task When_writing_a_message_to_the_inbox() { _storedCommand = await _dynamoDbInbox.GetAsync <MyCommand>(_raisedCommand.Id, _contextKey); //_should_read_the_command_from_the__dynamo_db_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); }
public async Task When_writing_a_message_to_the_inbox() { _storedCommand = await _dynamoDbInbox.GetAsync <MyCommand>(_raisedCommand.Id, _contextKey); //_should_read_the_command_from_the__dynamo_db_inbox AssertionExtensions.Should((object)_storedCommand).NotBeNull(); //_should_read_the_command_value AssertionExtensions.Should((string)_storedCommand.Value).Be(_raisedCommand.Value); //_should_read_the_command_id AssertionExtensions.Should((Guid)_storedCommand.Id).Be(_raisedCommand.Id); }