public NewCityViewModel( Document document, CitySelection selection, IStorageService storageService) { _storageService = storageService; _document = document; _selection = selection; }
private ViewModelLocator(string mashapeKey, IStorageService storageService) { _storageService = storageService; _document = new Document(); _citySelection = new CitySelection(); _weatherServiceAgent = new FakeWeatherServiceAgent(_document); _forecastRepository = new ForecastRepository( _storageService, _weatherServiceAgent, _document); }
public MainViewModel(Document document, CitySelection selection) { _document = document; _selection = selection; }