コード例 #1
0
        public void GetHighestCachePositionTest( )
        {
            var expected = new GeoPosition(48.4719, 14.399167);
            var actual   = target.GetHighestCachePosition();

            Assert.AreEqual(expected.Latitude, actual.Latitude);
            Assert.AreEqual(expected.Longitude, actual.Longitude);
        }
コード例 #2
0
 public DataFilter GetDefaultFilter()
 {
     return(new DataFilter {
         FromPosition = cacheDao.GetLowestCachePosition(),
         ToPosition = cacheDao.GetHighestCachePosition(),
         FromDate = cacheDao.GetEarliestCacheCreationDate(),
         ToDate = cacheDao.GetLatestCacheCreationDate(),
         FromCacheDifficulty = 1.0,
         ToCacheDifficulty = 5.0,
         FromTerrainDifficulty = 1.0,
         ToTerrainDifficulty = 5.0,
         FromCacheSize = 1,
         ToCacheSize = 6,
         CacheName = "",
         // limit only applies to top-X list of statistical data, therefore the typical default
         Limit = 10
     });
 }