Exemple #1
0
        protected async Task ExpectDone(Id instanceId, ExpectTimeout timeout = null)
        {
            var host = await GetOrStartHost();

            await host.ExpectDone(instanceId, timeout ?? ExpectTimeout.Default);
        }
Exemple #2
0
 protected Task ExpectDone(ExpectTimeout timeout = null) =>
 ExpectDone(Id.Unassigned, timeout);
Exemple #3
0
 protected Task <TQuery> GetQuery(ExpectTimeout timeout = null) =>
 GetQuery(Id.Unassigned, timeout);
Exemple #4
0
        protected async Task <TQuery> GetQuery(Id instanceId, ExpectTimeout timeout = null)
        {
            var host = await GetOrStartHost();

            return(await host.GetQuery <TQuery>(instanceId, timeout ?? ExpectTimeout.Default));
        }
Exemple #5
0
        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));
        }