Exemple #1
0
        protected async Task <IReadOnlyList <Envelope> > afterReceivingTheEnvelopes()
        {
            var status = await theListener.Received(theUri, theEnvelopes.ToArray());

            status.ShouldBe(ReceivedStatus.Successful);

            return(ThePersistence.AllIncomingEnvelopes());
        }
        protected async Task<IReadOnlyList<Envelope>> afterReceivingTheEnvelopes()
        {
            var status = await theWorkerQueue.ProcessReceivedMessages(DateTime.UtcNow, theUri, theEnvelopes.ToArray());

            status.ShouldBe(ReceivedStatus.Successful);

            return ThePersistence.AllIncomingEnvelopes();
        }
        protected async Task <IReadOnlyList <Envelope> > afterReceivingTheEnvelopes()
        {
            await theWorkerQueue.ProcessReceivedMessages(DateTime.UtcNow, theUri, theEnvelopes.ToArray());

            return(ThePersistence.AllIncomingEnvelopes());
        }