public void CreateBingTileSourceReturnsTileSource() { // arrange var config = new ConfigBing(BingMapType.Aerial); // act var tileSource = config.CreateTileSource(); // assert Assert.NotNull(tileSource); }
public static IConfig GetConfig(EnumBruTileLayer enumBruTileLayer) { IConfig result = new ConfigOsm(OsmMapType.Default); if (enumBruTileLayer == EnumBruTileLayer.OSM) { result = new ConfigOsm(OsmMapType.Default); } else if (enumBruTileLayer == EnumBruTileLayer.BingRoad) { result = new ConfigBing(BingMapType.Roads); } else if (enumBruTileLayer == EnumBruTileLayer.BingHybrid) { result = new ConfigBing(BingMapType.Hybrid); } else if (enumBruTileLayer == EnumBruTileLayer.BingAerial) { result = new ConfigBing(BingMapType.Aerial); } return(result); }