Пример #1
0
        /// <summary>
        /// Gets countries with airports
        /// </summary>
        /// <returns> Name of country, list of airports in country </returns>
        public static IEnumerable TestCaseWithCountries()
        {
            AvailiableAirportsSteps steps = new AvailiableAirportsSteps();
            var data = steps.DeserializeCountries(CountriesPath);

            foreach (Country currentCountry in data.Countries)
            {
                yield return(new TestCaseData(currentCountry.CountryName, currentCountry.Airports));
            }
        }
 public void SetUp()
 {
     step = new AvailiableAirportsSteps();
     step.Open();
 }