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); }
public void Create_Target_VM() { var keys = new MockApiKeyProvider(); vm = new MapViewModel(new MockBingMapsApi(keys), new MockCensusApi(keys)); }