public void CalculateDistance()
        {
            // Arrange
            GeoCoordinateVo  latitude1    = new GeoCoordinateVo(51.5f);
            GeoCoordinateVo  longitude1   = new GeoCoordinateVo(0);
            GeoCoordinatesVo coordinates1 = new GeoCoordinatesVo(latitude1, longitude1);

            GeoCoordinateVo  latitude2    = new GeoCoordinateVo(38.8f);
            GeoCoordinateVo  longitude2   = new GeoCoordinateVo(-77.1f);
            GeoCoordinatesVo coordinates2 = new GeoCoordinatesVo(latitude2, longitude2);

            LocationDistanceCalculator calculator = new LocationDistanceCalculator(coordinates1, coordinates2);

            // Act
            var result = Math.Round(calculator.CalculateDistanceInMeters(), 2);

            // Assert
            Assert.Equal(5918185.06, result);
        }
 public GeoCoordinatesVo(GeoCoordinatesDto geoCoordinatesDto)
 {
     latitude  = new GeoCoordinateVo(geoCoordinatesDto.latitude);
     longitude = new GeoCoordinateVo(geoCoordinatesDto.longitude);
 }
 public GeoCoordinatesVo(float latitude, float longitude)
 {
     this.latitude  = new GeoCoordinateVo(latitude);
     this.longitude = new GeoCoordinateVo(longitude);
 }
 public GeoCoordinatesVo(GeoCoordinateVo latitude, GeoCoordinateVo longitude)
 {
     this.latitude  = latitude;
     this.longitude = longitude;
 }