public void SetUp()
        {
            fakeOutbox        = new FakeOutboxStorage();
            fakeBatchPipeline = new FakeBatchPipeline();

            behavior = new TransportReceiveToPhysicalMessageProcessingConnector(fakeOutbox);
        }
        static ITransportReceiveContext CreateContext(FakeBatchPipeline pipeline, string messageId)
        {
            var context = new TestableTransportReceiveContext
            {
                Message = new IncomingMessage(messageId, new Dictionary <string, string>(), new byte[0])
            };

            context.Extensions.Set <IPipelineCache>(new FakePipelineCache(pipeline));

            return(context);
        }