public async Task Current_Should_Not_Be_Empty() { //Arrange _weatherApiManager .Setup(e => e.GetWeatherInfo(It.IsAny <string>(), It.IsAny <string>())) .ReturnsAsync(new WeatherInfo { Date = DateTime.Now, Description = "Mock test", FeelsLike = 1, Humidity = 1, Location = "Mock Location", SkyStatus = "Rain", Temp = 1, WindInfo = new WeatherInfo.Wind { Degree = 1, Speed = 1 } }) .Verifiable(); //Act await _HomePageViewModel.FetchCurrentWeather(); //Assert _weatherApiManager.Verify(e => e.GetWeatherInfo(It.IsAny <string>(), It.IsAny <string>())); Assert.IsNotNull(_HomePageViewModel.WeatherReport); }