public void CreateGeoPointMapping()
        {
            var geoPointDto = new GeoPointDto
            {
                CityCoordinates = new GeoPoint(45, 45),
                Id   = "1",
                Name = "test"
            };

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

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

                context.AddUpdateDocument(geoPointDto, geoPointDto.Id);
                context.SaveChanges();
                Thread.Sleep(1500);
                Assert.AreEqual(1, context.Count <GeoPointDto>());
                var result = context.SearchById <GeoPointDto>(1);
                Assert.AreEqual(geoPointDto.CityCoordinates.Count, result.CityCoordinates.Count);
            }
        }
        public void CreateGeoPointMapping()
        {
            var geoPointDto = new GeoPointDto
            {
                CityCoordinates = new GeoPoint(45, 45),
                Id = "1",
                Name="test"
            };
            using ( var context = new ElasticsearchContext(ConnectionString, new ElasticsearchSerializerConfiguration(_elasticsearchMappingResolver)))
            {
                context.TraceProvider = new ConsoleTraceProvider();
                context.IndexCreate<GeoPointDto>();

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

                context.AddUpdateDocument(geoPointDto, geoPointDto.Id);
                context.SaveChanges();
                Thread.Sleep(1500);
                Assert.AreEqual(1, context.Count<GeoPointDto>());
                var result = context.SearchById<GeoPointDto>(1);
                Assert.AreEqual(geoPointDto.CityCoordinates.Count, result.CityCoordinates.Count);
            }
        }