public void CreateGeoShapeLineStringMapping()
        {
            var geoShapeLineStringDto = new GeoShapeLineStringDto
            {
                ShapeLineCoordinates = new GeoShapeLineString
                {
                    Coordinates = new List <GeoPoint>
                    {
                        new GeoPoint(45, 45),
                        new GeoPoint(46, 45)
                    }
                },
                Id   = "1",
                Name = "test",
            };

            using (var context = new ElasticsearchContext(ConnectionString, new ElasticsearchSerializerConfiguration(_elasticsearchMappingResolver)))
            {
                context.TraceProvider = new ConsoleTraceProvider();
                context.IndexCreate <GeoShapeLineStringDto>();

                Thread.Sleep(1500);
                Assert.IsNotNull(context.IndexExists <GeoShapeLineStringDto>());

                context.AddUpdateDocument(geoShapeLineStringDto, geoShapeLineStringDto.Id);
                context.SaveChanges();
                Thread.Sleep(1500);
                Assert.AreEqual(1, context.Count <GeoShapeLineStringDto>());
                var result = context.SearchById <GeoShapeLineStringDto>(1);
                Assert.AreEqual(geoShapeLineStringDto.ShapeLineCoordinates.Coordinates.Count, result.ShapeLineCoordinates.Coordinates.Count);
            }
        }
        public void CreateGeoShapeLineStringMapping()
        {
            var geoShapeLineStringDto = new GeoShapeLineStringDto
            {
                ShapeLineCoordinates = new GeoShapeLineString
                {
                    Coordinates = new List<GeoPoint>
                    {
                        new GeoPoint(45, 45),
                        new GeoPoint(46, 45)
                    }
                },
                Id = "1",
                Name = "test",
            };

            using (var context = new ElasticsearchContext(ConnectionString, new ElasticsearchSerializerConfiguration(_elasticsearchMappingResolver)))
            {
                context.TraceProvider = new ConsoleTraceProvider();
                context.IndexCreate<GeoShapeLineStringDto>();

                Thread.Sleep(1500);
                Assert.IsNotNull(context.IndexExists<GeoShapeLineStringDto>());

                context.AddUpdateDocument(geoShapeLineStringDto, geoShapeLineStringDto.Id);
                context.SaveChanges();
                Thread.Sleep(1500);
                Assert.AreEqual(1, context.Count<GeoShapeLineStringDto>());
                var result = context.SearchById<GeoShapeLineStringDto>(1);
                Assert.AreEqual(geoShapeLineStringDto.ShapeLineCoordinates.Coordinates.Count, result.ShapeLineCoordinates.Coordinates.Count);
            }
        }