public void SetUp()
        {
            _communicationContext = MockRepository.GenerateStub<ICommunicationContext>();
            _communicationContext.Stub(x => x.Request).Return(MockRepository.GenerateStub<IRequest>());

            _authenticationScheme = MockRepository.GenerateStub<IAuthenticationScheme>();
            _operation = MockRepository.GenerateStub<IOperation>();
        }
        public void SetUp()
        {
            Context = new UriGeneratorTestContext();

            var internalDependencyResolver             = new InternalDependencyResolver();
            ICommunicationContext communicationContext = MockRepository.GenerateStub <ICommunicationContext>();

            Context.BaseUri = new Uri("http://localhost/");
            communicationContext.Stub(x => x.ApplicationBaseUri).Return(Context.BaseUri);
            internalDependencyResolver.AddDependencyInstance <ICommunicationContext>(communicationContext);
            Context.UriResolver = MockRepository.GenerateStub <IUriResolver>();
            internalDependencyResolver.AddDependencyInstance <IUriResolver>(Context.UriResolver);
            Context.Target = new UriGenerator(Context.UriResolver);
            DependencyManager.SetResolver(internalDependencyResolver);
        }