예제 #1
0
        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));
        }
예제 #2
0
        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));
        }