예제 #1
0
 protected void GivenThePrimitiveResponse <TResponse>(string uri, TResponse response, HttpMethod method = null, params string[] customHeaders)
 {
     _messageHandler.SetupStringResponse(uri, response.ToString().ToLower(), method: method, customerHeaders: customHeaders);
 }
 protected void GivenTheResponse <TResponse>(string uri, TResponse response, HttpMethod method = null, params string[] customHeaders)
     where TResponse : class
 {
     _messageHandler.SetupStringResponse(uri, response.AsJson(), method: method, customerHeaders: customHeaders);
 }