public async void FetchWeatherData_ReturnShouldContainDataFromAPI()
        {
            var data = await WeatherService.FetchWeatherData();

            Assert.NotNull(data?.Temperature);
            Assert.NotNull(data?.Humidity);
        }
Esempio n. 2
0
        private async void btnUpdateData_Click(object sender, RoutedEventArgs e)
        {
            var weatherData = await WeatherService.FetchWeatherData();

            tbxTemperature.Text = weatherData.Temperature.ToString();
            tbxHumidity.Text    = weatherData.Humidity.ToString();
        }
        public async void FetchWeatherData_ShouldReturnATemperatureModel()
        {
            var data = await WeatherService.FetchWeatherData();

            Assert.IsType <TemperatureModel>(data);
        }