protected override Consumes <TestMessage> GivenConsumer() { Multiplexor <TestMessage> m = new Multiplexor <TestMessage>(); firstConsumer = new TestConsumer <TestMessage>(); secondConsumer = new TestConsumer <TestMessage>(); m.AttachConsumer(secondConsumer); m.AttachConsumer(firstConsumer); return(m); }
protected override Consumes <TestMessage> GivenConsumer() { Multiplexor <TestMessage> m = new Multiplexor <TestMessage>(); attachedConsumer = new TestConsumer <TestMessage>(); removedConsumer = new TestConsumer <TestMessage>(); m.AttachConsumer(removedConsumer); m.AttachConsumer(attachedConsumer); m.RemoveConsumer(removedConsumer); return(m); }
public void AttachConsumer(Consumes <T> consumer) { multiplexor.AttachConsumer(consumer); }