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