示例#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);
 }