Ejemplo n.º 1
0
        public void Should_make_use_of_index_type_name_if_provided()
        {
            var indexTypeName = "my-type-name";
            var rollingIndexNameDateFormat = "yyyy-MM-dd";

            Uri.Init(rollingIndexNameDateFormat, indexTypeName);

            var connectionString = ";Server=127.0.0.1;Index=log_test;Port=9200;rolling=true";

            var uriBuilder = Uri.For(connectionString);
            var uri        = uriBuilder;

            var request = HttpClient.RequestFor(uri);

            request.Address.ToString().Should().Contain(indexTypeName);
        }