/// <summary> /// Sets the object to use as the response content. /// </summary> /// <param name="builder">The <see cref="HttpRequestInterceptionBuilder"/> to use.</param> /// <param name="content">The object to serialize as JSON as the content.</param> /// <returns> /// The value specified by <paramref name="builder"/>. /// </returns> /// <exception cref="ArgumentNullException"> /// <paramref name="builder"/> or <paramref name="content"/> is <see langword="null"/>. /// </exception> public static HttpRequestInterceptionBuilder WithJsonContent( this HttpRequestInterceptionBuilder builder, object content) { return(builder.WithNewtonsoftJsonContent(content)); }