public void Map_GeocodingResultDto_FormattedAddress()
        {
            var     config = new MapperConfiguration(cfg => { cfg.AddProfile <GeocodingMappingProfile>(); });
            IMapper mapper = config.CreateMapper();

            var dto = new GeocodingResultDto {
                FormattedAddress = Factory.GetString()
            };
            var result = mapper.Map <GeocodingInfo>(dto);

            Assert.Equal(dto.FormattedAddress, result.FormattedAddress);
        }
        public void Map_GeocodingResultDto_Longitude()
        {
            var     config = new MapperConfiguration(cfg => { cfg.AddProfile <GeocodingMappingProfile>(); });
            IMapper mapper = config.CreateMapper();

            var dto = new GeocodingResultDto {
                Geometry = new GeocodingGeometryDto {
                    Location = new GeocodingLocationDto {
                        Longitude = 13.37
                    }
                }
            };
            var result = mapper.Map <GeocodingInfo>(dto);

            Assert.Equal(dto.Geometry.Location.Longitude, result.Longitude);
        }