public async Task should_send_a_failure_ack() { var root = new MockMessagingRoot(); await theContinuation.Execute(root, theChannelCallback, theEnvelope, null, DateTime.UtcNow); await root.Acknowledgements .Received() .SendFailureAcknowledgement(theEnvelope, $"Moved message {theEnvelope.Id} to the Error Queue.\n{theException}") ; }
public async Task should_mark_the_envelope_as_failed() { await theContinuation.Execute(new MockMessagingRoot(), theContext, DateTime.UtcNow); await theEnvelope.Callback.Received().MoveToErrors(theEnvelope, theException); }
public async Task should_mark_the_envelope_as_failed() { await theContinuation.Execute(theEnvelope, theContext, DateTime.UtcNow); theEnvelope.Callback.Received().MoveToErrors(new ErrorReport(theEnvelope, theException)); }