public async Task LoadingViewModelShouldRequestWeatherForSavedLocation() { var result = ""; _locationWeatherServiceMock.GetWeatherForNamedLocationAsync(London).Returns(x => { result = Success; return Task.FromResult(Success); }); await _sut.OnLoadAsync(); result.Should().Be(Success); }
private async void GetWeather() { WeatherText = await _locationWeatherService.GetWeatherForNamedLocationAsync(Location); }