Пример #1
0
 public MockHttpClient(string baseAddress)
 {
     this.baseAddress = baseAddress;
     Setups           = new SetupCollection();
     handler          = new HttpMessageHandler(Setups);
     httpClient       = new SystemHttpClient(handler)
     {
         BaseAddress = new Uri(baseAddress),
     };
 }
Пример #2
0
 public HttpMessageHandler(SetupCollection setups)
 {
     this.setups = setups;
 }