Example #1
0
        public async Task <IHttpActionResult> GetGeoPoint(long id)
        {
            GeoPoint point = await _geoPointService.FindGeoPoint(id);

            if (point == null)
            {
                return(NotFound());
            }

            return(Ok(point));
        }
Example #2
0
        public void GetGeoPointFromId()
        {
            long id    = 0;
            var  point = geoPointService.FindGeoPoint(id);

            Assert.AreEqual(point.Result, geoPoints[0]);
        }