public async Task LoadingViewModelShouldRequestWeatherForSavedLocation()
		{
			var result = "";
			_locationWeatherServiceMock.GetWeatherForNamedLocationAsync(London).Returns(x =>
			{
				result = Success;
				return Task.FromResult(Success);
			});
			
			await _sut.OnLoadAsync();

			result.Should().Be(Success);
		}
示例#2
0
 private async void GetWeather()
 {
     WeatherText = await _locationWeatherService.GetWeatherForNamedLocationAsync(Location);
 }