public static IMockHttpHandlerConfigurator RespondStringContent(this IMockHttpResponseBuilder builder, HttpStatusCode code, string content, Encoding encoding, string contentType)
 {
     return(builder.Respond((req, rsp) => rsp.SetStatusCode(code).SetStringContent(content, encoding, contentType)));
 }
 public static IMockHttpHandlerConfigurator RespondJsonContent(this IMockHttpResponseBuilder builder, HttpStatusCode code, object content, JsonSerializerSettings settings = null)
 {
     return(builder.Respond((req, rsp) => rsp.SetStatusCode(code).SetJsonContent(content, settings)));
 }
 public static IMockHttpHandlerConfigurator RespondStatusCode(this IMockHttpResponseBuilder builder, HttpStatusCode code)
 {
     return(builder.Respond((req, rsp) => rsp.SetStatusCode(code)));
 }