Пример #1
0
        public void should_send_a_failure_ack()
        {
            var message = "Sending cascading message failed: " + theException.Message;

            theEnvelopeContext.Received().SendFailureAcknowledgement(theEnvelope, message);
        }
Пример #2
0
        public async Task should_send_a_failure_ack()
        {
            await theContinuation.Execute(theEnvelope, theContext, DateTime.UtcNow);

            theContext.Received().SendFailureAcknowledgement(theEnvelope, $"Moved message {theEnvelope.CorrelationId} to the Error Queue.\n{theException}");
        }
Пример #3
0
 public void should_send_off_all_queued_up_cascaded_messages()
 {
     theEnvelopeContext.Received().SendAllQueuedOutgoingMessages();
 }
 public async Task should_send_the_message()
 {
     await new RespondWithMessageContinuation(theMessage).Execute(theEnvelope, theContext, DateTime.Now);
     theContext.Received().SendOutgoingMessage(theEnvelope, theMessage);
 }