public void CreateGeoShapeMultiPointMapping()
        {
            var geoShapeLineStringDto = new GeoShapeMultiPointDto
            {
                Coordinates = new GeoShapeMultiPoint
                {
                    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 <GeoShapeMultiPointDto>();

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

                context.AddUpdateDocument(geoShapeLineStringDto, geoShapeLineStringDto.Id);
                context.SaveChanges();
                Thread.Sleep(1500);
                Assert.AreEqual(1, context.Count <GeoShapeMultiPointDto>());
                var result = context.SearchById <GeoShapeMultiPointDto>(1);
                Assert.AreEqual(geoShapeLineStringDto.Coordinates.Coordinates.Count, result.Coordinates.Coordinates.Count);
            }
        }
        public void CreateGeoShapeMultiPointMapping()
        {
            var geoShapeLineStringDto = new GeoShapeMultiPointDto
            {
                Coordinates = new GeoShapeMultiPoint
                {
                    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<GeoShapeMultiPointDto>();

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

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