testFinishAsyncWithError method

void testFinishAsyncWithError(
  1. AFStateTestContext context,
  2. AFQueryError error
)

Called during testing to simulate results from an asynchronous call.

Implementation

void testFinishAsyncWithError(AFStateTestContext context, AFQueryError error) {
  final errorContext = AFFinishQueryErrorContext(
    conceptualStore: conceptualStore,
    error: error
  );
  finishAsyncWithErrorAF(errorContext);
}