public void FixtureSetup() { var locations = JsonConvert.DeserializeObject <List <Location> >(ODESSA_RESPONSE_JSON); mock = new Mock <IAccuWeatherService>(); mock.Setup(d => d.GetLocations("Odessa")).ReturnsAsync(locations); manager = new AccuWeatherManager(mock.Object, new Dictionary <string, Object>()); }
public void FixtureSetup() { var conditions = JsonConvert.DeserializeObject <List <CurrentConditions> >(CONDITIONS_RESPONSE_JSON); mock = new Mock <IAccuWeatherService>(); mock.Setup(d => d.GetCurrentConditions("331122")).ReturnsAsync(conditions); manager = new AccuWeatherManager(mock.Object, new Dictionary <string, Object>()); }
public App() { InitializeComponent(); WeatherManager = new AccuWeatherManager(new AccuWeatherService(), Current.Properties); MainPage = new NavigationPage(new Weather.MainPage()); }