public AccuWeatherManager(IAccuWeatherService restService, IDictionary <string, object> settings) { this.RestService = restService; this.Settings = settings; ConditionsList = new ObservableCollection <LocationWeatherInfo>(); LoadSettings(); }
public WeatherViewModel() { SearchCommand = new SearchCommand(this); Cities = new ObservableCollection <City>(); if (!DesignerProperties.GetIsInDesignMode(new DependencyObject())) { _accuWeatherService = App.IocContainer.Resolve <IAccuWeatherService>(); return; } City = new City { Name = "Evansville" }; CurrentConditions = new CurrentConditions { WeatherText = "Bipolar", Temperature = new Temperature { Metric = new TemperatureUnit { Value = "21" }, Imperial = new TemperatureUnit { Value = "21" } } }; }