/// <summary> /// Sets the request URL to intercept a request for. /// </summary> /// <param name="builder">The <see cref="HttpRequestInterceptionBuilder"/> to use.</param> /// <param name="uriString">The request URL.</param> /// <returns> /// The value specified by <paramref name="builder"/>. /// </returns> /// <exception cref="ArgumentNullException"> /// <paramref name="builder"/> is <see langword="null"/>. /// </exception> public static HttpRequestInterceptionBuilder ForUrl(this HttpRequestInterceptionBuilder builder, string uriString) { if (builder == null) { throw new ArgumentNullException(nameof(builder)); } return(builder.ForUri(new Uri(uriString))); }