Ejemplo n.º 1
0
        public RestClientShould()
        {
            _handler    = new FakeClientHandler();
            _builder    = new Mock <IResponseBuilder>();
            _restClient = new RestClient(new HttpClient(_handler), _builder.Object);

            _request  = new HttpRequestMessage(HttpMethod.Get, new Uri("https://example.com/foo"));
            _response = new RestResponse <TestResponse>(new HttpResponseMessage(), new TestResponse(), null);
        }
Ejemplo n.º 2
0
 public RestClientShould()
 {
     _handler    = new FakeClientHandler();
     _builder    = new Mock <IResponseBuilder>();
     _restClient = new RestClient(new HttpClient(_handler), _builder.Object);
 }