public void ignores_nulls_just_fine() { var messages = new EnvelopeContext(null, new Envelope { Message = new Message1() }, null, null); messages.EnqueueCascading(null); messages.OutgoingMessages().Any().ShouldBeFalse(); }
public void enqueue_an_oject_array() { var messages = new EnvelopeContext(null, new Envelope { Message = new Message1() }, null, null); var m1 = new Message1(); var m2 = new Message2(); messages.EnqueueCascading(new object[] { m1, m2 }); messages.OutgoingMessages().ShouldHaveTheSameElementsAs(m1, m2); }
public void enqueue() { var messages = new EnvelopeContext(null, new Envelope { Message = new Message1() }, null, null); var m1 = new Message1(); var m2 = new Message2(); messages.EnqueueCascading(m1); messages.EnqueueCascading(m2); messages.OutgoingMessages().ShouldHaveTheSameElementsAs(m1, m2); }