internal UrlTester(HttpMethod method, string expectedUrl, Func <ElasticsearchClientSettings, ElasticsearchClientSettings> settings = null) { ExpectedHttpMethod = method; ExpectedUrl = expectedUrl; Client = settings == null ? TestClient.DefaultInMemoryClient : new ElasticsearchClient(settings(new AlwaysInMemoryElasticsearchClientSettings())); }
public static UrlTester ExpectUrl(HttpMethod method, string url, Func <ElasticsearchClientSettings, ElasticsearchClientSettings> settings = null) =>