Esempio n. 1
0
        public ActionResult <Location> Get()
        {
            var location       = _locationService.GetCurrent();
            var locationMapped = LocationMapper.DomainToSDK(location);

            return(locationMapped);
        }
Esempio n. 2
0
        public void WhenMappingLocation_MappingIsValid()
        {
            var location = new Location
            {
                Timestamp = 1597260818,
                Longitude = 1.7712m,
                Latitude  = -10.7872m
            };

            var locationMapped = LocationMapper.DomainToSDK(location);

            Assert.True(
                locationMapped.Timestamp == location.Timestamp &&
                locationMapped.Longitude == location.Longitude &&
                locationMapped.Latitude == location.Latitude
                );
        }