public void GetLowestCachePositionTest() { var expected = new GeoPosition(46.966667, 12.1913); var actual = target.GetLowestCachePosition(); Assert.AreEqual(expected.Latitude, actual.Latitude); Assert.AreEqual(expected.Longitude, actual.Longitude); }
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 }); }