defineQueryResponseFixed<TQuery extends AFAsyncQuery> method
void
defineQueryResponseFixed<TQuery extends AFAsyncQuery>(
- dynamic idData, {
- Object? querySpecifier,
Specify a response for a particular query.
When the query 'executes', its AFAsyncQuery.startAsync method will be skipped
and its AFAsyncQuery.finishAsyncWithResponse method will be called with the
test data with the specified idData in the test data registry.
Implementation
void defineQueryResponseFixed<TQuery extends AFAsyncQuery>(dynamic idData, { Object? querySpecifier }) {
assert(TQuery != AFAsyncQuery, errSpecifyTypeParameter);
test.defineQueryResponse<TQuery>(querySpecifier ?? TQuery, definitions, idData);
}