public void Receive()
        {
            var t = new RabbitMqTransport(new EndpointAddress(new Uri("rabbitmq://localhost/dru")), _factory.CreateConnection(_rabbitAddress));

            t.Receive(s =>
            {
                return(ss =>
                {
                    var buff = new byte[3];
                    ss.Read(buff, 0, buff.Length);
                    var name = Encoding.UTF8.GetString(buff);
                    Assert.AreEqual("dru", name);
                    Console.WriteLine(name);
                });
            });
        }
 public async Task <TransportMessage> Receive(ITransactionContext context, CancellationToken cancellationToken)
 {
     return(await transport.Receive(context, cancellationToken));
 }