public async Task AsMultipleResultSetAsync_WhenCalledAndAwaited_ReturnsMultiResultSet() { var command = PrepareCommand(); command.SetMultiResultSet(Person.GetMultiResultSet()); var commandBuilder = new CommandBuilder(command, DbConfig.Default); var result = (await commandBuilder.AsMultiResultSetAsync()).ToList(); Person.VerifyMultiResultSet(result); }
public void AsMultiResultSetGeneric5_WhenCalled_ReturnsMultipleResultSets() { var command = PrepareCommand(); var data = Person.GetMultiResultSet(); command.SetMultiResultSet(data); var commandBuilder = new CommandBuilder(command, DbConfig.Default); var result = commandBuilder.AsMultiResultSet <Person, Person, Person, Person, Person>(); Person.VerifyMultiResultSet(result); }