public async void GetForecastByCountryCode() { var service = new WeatherUnlockedService(_mockClient, _mapper); string code = "us.33109"; var result = await service.ForecastAsync(code, Localization.DEFAULT); Assert.True(CompareForecastData(result, PredefinedData.DefaultClientForecastResponse)); }
public async void GetForecastByCoords() { var service = new WeatherUnlockedService(_mockClient, _mapper); float latitude = 40.71f; float longitude = 74.00f; var result = await service.ForecastAsync(latitude, longitude, Localization.DEFAULT); Assert.True(CompareForecastData(result, PredefinedData.DefaultClientForecastResponse)); }