private IReadOnlyList <Envelope> persistedEnvelopes(int ownerId) { return(_admin.AllIncomingEnvelopes().GetAwaiter().GetResult() .Concat(_admin.AllOutgoingEnvelopes().GetAwaiter().GetResult()) .Where(x => x.OwnerId == ownerId) .ToList()); }
protected async Task <Envelope[]> afterReceivingTheEnvelopes() { var status = await theListener.Received(theUri, theEnvelopes.ToArray()); status.ShouldBe(ReceivedStatus.Successful); return(await EnvelopeStorageAdmin.AllIncomingEnvelopes()); }
protected async Task <Envelope[]> afterReceivingTheEnvelopes() { var status = await theWorkerQueue.ProcessReceivedMessages(DateTime.UtcNow, theUri, theEnvelopes.ToArray()); status.ShouldBe(ReceivedStatus.Successful); return(await EnvelopeStorageAdmin.AllIncomingEnvelopes()); }
protected async Task <Envelope[]> afterReceivingTheEnvelopes() { await theWorkerQueue.ProcessReceivedMessages(DateTime.UtcNow, theUri, theEnvelopes.ToArray()); return(await EnvelopeStorageAdmin.AllIncomingEnvelopes()); }