Пример #1
0
 public NewCityViewModel(
     Document document,
     CitySelection selection,
     IStorageService storageService)
 {
     _storageService = storageService;
     _document       = document;
     _selection      = selection;
 }
Пример #2
0
        private ViewModelLocator(string mashapeKey, IStorageService storageService)
        {
            _storageService = storageService;

            _document            = new Document();
            _citySelection       = new CitySelection();
            _weatherServiceAgent = new FakeWeatherServiceAgent(_document);
            _forecastRepository  = new ForecastRepository(
                _storageService,
                _weatherServiceAgent,
                _document);
        }
Пример #3
0
 public MainViewModel(Document document, CitySelection selection)
 {
     _document  = document;
     _selection = selection;
 }