private IReadOnlyList <Envelope> persistedEnvelopes(int ownerId)
 {
     return(_admin.AllIncomingEnvelopes().GetAwaiter().GetResult()
            .Concat(_admin.AllOutgoingEnvelopes().GetAwaiter().GetResult())
            .Where(x => x.OwnerId == ownerId)
            .ToList());
 }
示例#2
0
        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());
        }
示例#4
0
        protected async Task <Envelope[]> afterReceivingTheEnvelopes()
        {
            await theWorkerQueue.ProcessReceivedMessages(DateTime.UtcNow, theUri, theEnvelopes.ToArray());

            return(await EnvelopeStorageAdmin.AllIncomingEnvelopes());
        }