public void GetStationInformation_Multiple_Valid() { var request = _aviationWeather.GetStationInfoByICAOAsync(new List <string>() { "SLSA", "YPXM" }); request.Wait(); var stations = request.Result; stations.Should().NotBeEmpty(); stations[0].ICAO.Should().Be("SLSA"); stations[1].ICAO.Should().Be("YPXM"); }
public void GetStationInformation_Single_Valid() { var request = _aviationWeather.GetStationInfoByICAOAsync(new List <string>() { "KLAX" }); request.Wait(); var stations = request.Result; stations.Should().NotBeNullOrEmpty(); stations.Count.Should().Be(1); stations[0].ICAO.Should().Be("KLAX"); stations[0].WMOID.Should().Be(72295); stations[0].State.Should().Be("CA"); stations[0].Country.Should().Be("US"); stations[0].Name.Should().Be("LOS ANGELES"); stations[0].GeographicData.Should().NotBeNull(); stations[0].GeographicData.Elevation.Should().Be(46.0f); stations[0].GeographicData.Latitude.Should().Be(33.93f); stations[0].GeographicData.Longitude.Should().Be(-118.38f); stations[0].SiteType.Should().Contain(SiteType.METAR); stations[0].SiteType.Should().Contain(SiteType.TAF); }