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

            strategy.Create(Contributors().ToArray());
            _indexSettings = _fixture.RespondsWith <IndexSettings>();
        }
コード例 #2
0
        public void CreatingIndex()
        {
            var strategy = new StubElasticsearchIndexCreationStrategy(_fixture.Client);

            strategy.Create();
            _fixture.ShouldUseHttpMethod("POST");
        }
コード例 #3
0
        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();
        }