public async Task BuildClient_IndexDoesNotExist_CreatesIndex() { // Arrange var settings = new ConnectionConfiguration(new Uri(this.config.Address)); var client = new ElasticLowLevelClient(settings); await client.IndicesDeleteAsync <VoidResponse>(this.index).ConfigureAwait(false); // Act await this.target.BuildAsync(this.config, new[] { index }).ConfigureAwait(false); // Assert var getIndexResult = await client.IndicesGetAsync <byte[]>(this.index).ConfigureAwait(false); Assert.IsTrue(getIndexResult.Success); }