示例#1
0
        protected void Because()
        {
            var strategy = new StubElasticsearchIndexCreationStrategy(_fixture.Client);

            strategy.Create(Contributors().ToArray());
            _indexSettings = _fixture.RespondsWith <IndexSettings>();
        }
        public void CreatingIndex()
        {
            var strategy = new StubElasticsearchIndexCreationStrategy(_fixture.Client);

            strategy.Create();
            _fixture.ShouldUseHttpMethod("POST");
        }
        public void CreatingIndex()
        {
            var strategy = new StubElasticsearchIndexCreationStrategy(_fixture.Client);

            strategy.Create();
            var response = _fixture.RespondsWith <IndexSettings>();

            response.Should().NotBeNull();
        }
示例#4
0
        public void CreatingIndex()
        {
            var strategy = new StubElasticsearchIndexCreationStrategy(_fixture.Client);
            var result   = strategy.Create();

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