public void Should_receive_the_derived_message_type() { _channel.Send(new SimpleImpl()); _received.IsCompleted.ShouldBeTrue("Message was not received"); }
void Deserialize <TMessage>(string body) { var message = _serializer.Deserialize <TMessage>(body); _output.Send(message); }
protected void Send <T>(T message) { _channel.Send(message); }
void Send(Func <string> generator) { T message = _messageFactory(generator, null); _output.Send(message); }