Пример #1
0
        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);
        }
Пример #3
0
 protected void Send <T>(T message)
 {
     _channel.Send(message);
 }
Пример #4
0
        void Send(Func <string> generator)
        {
            T message = _messageFactory(generator, null);

            _output.Send(message);
        }