protected async Task ExpectDone(Id instanceId, ExpectTimeout timeout = null) { var host = await GetOrStartHost(); await host.ExpectDone(instanceId, timeout ?? ExpectTimeout.Default); }
protected Task ExpectDone(ExpectTimeout timeout = null) => ExpectDone(Id.Unassigned, timeout);
protected Task <TQuery> GetQuery(ExpectTimeout timeout = null) => GetQuery(Id.Unassigned, timeout);
protected async Task <TQuery> GetQuery(Id instanceId, ExpectTimeout timeout = null) { var host = await GetOrStartHost(); return(await host.GetQuery <TQuery>(instanceId, timeout ?? ExpectTimeout.Default)); }
protected async Task <TEvent> ExpectScheduled <TEvent>(ExpectTimeout timeout = null) where TEvent : Event { var host = await GetOrStartHost(); return(await host.Expect <TEvent>(timeout ?? ExpectTimeout.Default, scheduled : true)); }