eventTest<T extends EventHubService> method

Future<void> Function() eventTest<T extends EventHubService>(
  1. FutureOr<void> body(
    1. T hub
    )
)

Implementation

Future<void> Function() eventTest<T extends EventHubService>(
    FutureOr<void> Function(T hub) body) {
  return test(() async {
    final hub = resolve<T>();
    await body(hub);
  });
}