예제 #1
0
 protected HttpHandler(IAuthenticationProvider authenticationProvider)
 {
     _handler = HandlerFactory.Build();
     _endpointStore = new EndpointStore();
     _credentialsBuilder = new CredentialsBuilder(authenticationProvider);
 }
예제 #2
0
 public void SetUp()
 {
     _authenticationProvider = MockRepository.GenerateStub<IAuthenticationProvider>();
     _credentialsBuilder = new CredentialsBuilder(_authenticationProvider);
     _encodedCredentials = Encode(Username, Password);
 }