public async void CreatingIndexAsync()
        {
            var strategy = new StubElasticsearchIndexCreationStrategy(_fixture.Client);
            await strategy.CreateAsync();

            _fixture.ShouldUseHttpMethod("POST");
        }
Ejemplo n.º 2
0
        public async void CreatingIndexAsync()
        {
            var strategy = new StubElasticsearchIndexCreationStrategy(_fixture.Client);
            var result   = await strategy.CreateAsync();

            _fixture.ShouldUseHttpMethod("POST");
            result.Success.Should().BeTrue();
            result.Contributors.All(x => x.HasContributed).Should().BeTrue();
        }