internal static RequestMatcherBuilder CreateRequestMatcherBuilder( StubServiceBuilder invoker, HttpMethod method, string scheme, string destination, string path) { if (invoker == null) { throw new ArgumentNullException(nameof(invoker)); } if (method == null) { throw new ArgumentNullException(nameof(method)); } if (string.IsNullOrWhiteSpace(scheme)) { throw new ArgumentNullException(nameof(scheme)); } if (string.IsNullOrWhiteSpace(destination)) { throw new ArgumentNullException(nameof(destination)); } if (string.IsNullOrWhiteSpace(path)) { throw new ArgumentNullException(nameof(path)); } return(new RequestMatcherBuilder(invoker, method, scheme, destination, path)); }
protected RequestMatcherBuilder( StubServiceBuilder invoker, HttpMethod httpMethod, string scheme, string baseUrl, string path) { _invoker = invoker; _httpMethod = httpMethod; _scheme = scheme; _baseUrl = baseUrl; _path = path; }