コード例 #1
0
        public void MinMax_Zoom_levels()
        {
            var tile1 = new Tile
            {
                Id          = "MyFilename1",
                Zoom        = 3,
                TileSetName = "Test"
            };

            var tile2 = new Tile
            {
                Id          = "MyFilename2",
                Zoom        = 5,
                TileSetName = "Test"
            };

            _repository.Save(tile1);
            _repository.Save(tile2);

            var minMaxZoomLevels = _repository.GetMinMaxZoomLevels();

            Assert.Equal(3, minMaxZoomLevels.MinZoom);
            Assert.Equal(5, minMaxZoomLevels.MaxZoom);
        }