public static void ForUri_Throws_If_UriBuilder_Is_Null()
        {
            // Arrange
            var        builder    = new HttpRequestInterceptionBuilder();
            UriBuilder uriBuilder = null;

            // Act and Assert
            Assert.Throws <ArgumentNullException>("uriBuilder", () => builder.ForUri(uriBuilder));
        }
        /// <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)));
        }