Ejemplo n.º 1
0
        public async Task Location_of_some_airports_can_be_determined(string code, Location expectedLocation)
        {
            // Arrange

            var httpClient = new HttpClient
            {
                BaseAddress = new Uri("https://places-dev.cteleport.com")
            };

            IAirportLocator locator     = new PlacesService(httpClient, new PolicyRegistry());
            var             airportCode = new AirportCode(code);

            // Act

            var location = await locator.GetLocationAsync(airportCode);

            // Assert
            Assert.Equal(expectedLocation, location);
        }