Пример #1
0
        public MainViewModel(IBingMapsApi bingMapsApi, ICensusApi censusApi)
        {
            _mapViewModel = new MapViewModel(bingMapsApi, censusApi);

            _searchCommand = new RelayCommand<string>(DoSearch, CanDoSearch);
            _refreshCommand = new RelayCommand(DoRefresh);
            _clearCommand = new RelayCommand(DoClear, CanDoClear);
        }
Пример #2
0
 public void Create_Target_VM()
 {
     var keys = new MockApiKeyProvider();
     vm = new MapViewModel(new MockBingMapsApi(keys), new MockCensusApi(keys));
 }