public void Setup()
		{
			_service = MockRepository.GenerateMock<ISubscriptionService>();
			_endpointCache = MockRepository.GenerateMock<IEndpointCache>();
			
			_endpoint = MockRepository.GenerateMock<IEndpoint>();
			_endpoint.Stub(x => x.Address.Uri).Return(_testUri);

			_bus = MockRepository.GenerateMock<IServiceBus>();
			_bus.Stub(x => x.Endpoint).Return(_endpoint);

			_pipeline = new OutboundPipelineConfigurator(_bus).Pipeline;
			_bus.Stub(x => x.OutboundPipeline).Return(_pipeline);

			_consumer = new SubscriptionConsumer(_service);
			_consumer.Start(_bus);

			_remoteEndpoint = MockRepository.GenerateMock<IEndpoint>();
			_endpointCache.Stub(x => x.GetEndpoint(_remoteUri)).Return(_remoteEndpoint);

			_service.AssertWasCalled(x => x.Register(_consumer));
		}
		public void Setup()
		{
			_pipeline = new OutboundPipelineConfigurator(MockRepository.GenerateMock<IServiceBus>()).Pipeline;
		}