public void ChangeUri()
        {
            ChangeUriRequestFactoryInterceptor interceptor = new ChangeUriRequestFactoryInterceptor();

            requestFactory = new InterceptingClientHttpRequestFactory(requestFactoryMock,
                                                                      new IClientHttpRequestInterceptor[] { interceptor });

            IClientHttpRequest request = requestFactory.CreateRequest(new Uri("http://example.com"), HttpMethod.GET);

            Assert.AreEqual(new Uri("http://example.com/2"), requestMock.Uri);
        }
        public void ChangeUri()
        {
            ChangeUriRequestFactoryInterceptor interceptor = new ChangeUriRequestFactoryInterceptor();
            requestFactory = new InterceptingClientHttpRequestFactory(requestFactoryMock,
                new IClientHttpRequestInterceptor[] { interceptor });

            IClientHttpRequest request = requestFactory.CreateRequest(new Uri("http://example.com"), HttpMethod.GET);
            Assert.AreEqual(new Uri("http://example.com/2"), requestMock.Uri);
        }