public void should_send_a_failure_ack() { var message = "Sending cascading message failed: " + theException.Message; theEnvelopeContext.Received().SendFailureAcknowledgement(theEnvelope, message); }
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}"); }
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); }