public when_sending_a_failure_ack_and_ack_is_requested() { original = new Envelope { ReplyUri = "foo://bar".ToUri(), AckRequested = true, CorrelationId = Guid.NewGuid().ToString() }; var recordingSender = new RecordingEnvelopeSender(); new EnvelopeContext(null, original, recordingSender, null) .SendFailureAcknowledgement(original, "you stink"); theSentEnvelope = recordingSender.Sent.Single(); theAck = theSentEnvelope.Message as FailureAcknowledgement; }
public void SetUp() { original = new Envelope { ReplyUri = "foo://bar".ToUri(), AckRequested = true, CorrelationId = Guid.NewGuid().ToString() }; var recordingSender = new RecordingEnvelopeSender(); new OutgoingSender(recordingSender, new RecordingLogger()) .SendFailureAcknowledgement(original, "you stink"); theSentEnvelope = recordingSender.Sent.Single(); theAck = theSentEnvelope.Message as FailureAcknowledgement; }
public when_sending_a_failure_ack_and_response_is_requested() { original = new Envelope { ReplyUri = "foo://bar".ToUri(), AckRequested = false, ReplyRequested = "Message1", Id = Guid.NewGuid() }; var recordingSender = new RecordingEnvelopeSender(); new EnvelopeContext(null, original, recordingSender) .SendFailureAcknowledgement(original, "you stink"); theSentEnvelope = recordingSender.Sent.Single(); theAck = theSentEnvelope.Message as FailureAcknowledgement; }
protected bool Equals(FailureAcknowledgement other) { return string.Equals(CorrelationId, other.CorrelationId) && string.Equals(Message, other.Message); }
protected bool Equals(FailureAcknowledgement other) { return(string.Equals(CorrelationId, other.CorrelationId) && string.Equals(Message, other.Message)); }