public void GetForecastsInBox_InValid_MinLat()
        {
            Action a = () =>
            {
                _aviationWeather.GetForecastsInBoxAsync(0, 0, 0, -91, 0).Wait();
            };

            a.Should().Throw <ArgumentOutOfRangeException>();
        }
Пример #2
0
        public void GetForecastsInBox_Valid()
        {
            var request = _aviationWeather.GetForecastsInBoxAsync(25, -130, 65, -40, 3);

            request.Wait();
            var forecasts = request.Result;

            forecasts.Should().NotBeNull();
            forecasts.Count.Should().NotBe(0);
        }