testFinishAsyncWithResponse method

void testFinishAsyncWithResponse(
  1. AFStateTestContext context,
  2. TResponse response
)

Called during testing to simulate results from an asynchronous call.

Implementation

void testFinishAsyncWithResponse(AFStateTestContext context, TResponse response) {
  final successContext = AFFinishQuerySuccessContext<TResponse>(
    conceptualStore: conceptualStore,
    response: response,
    isPreExecute: false,
  );
  finishAsyncWithResponseAF(successContext);
}