public void AllTest() { List <string> filters = new List <string>() { Filters.Name }; List <Country> allCountriesFiltered = RestCountry.All(filters); List <Country> allCountries = RestCountry.All(); foreach (Country con in allCountries) { if (con.Name == "Nepal") { _NepalResultFull(con); } } foreach (Country con in allCountriesFiltered) { if (con.Name == "Nepal") { _NepalResultFiltered(con); } } }
public void AllTest() { List <string> filters = new List <string> () { Filters.Name }; List <Country> allCountriesFiltered = RestCountry.All(filters); List <Country> allCountries = RestCountry.All(); List <string> filterByAlphaCode = new List <string> () { Filters.Alpha2Code }; List <Country> alllCountriesAlphaCodeFilter = RestCountry.All(filterByAlphaCode); foreach (Country con in allCountries) { if (con.Name == "Nepal") { _NepalResultFull(con); } } foreach (Country con in allCountriesFiltered) { if (con.Name == "Nepal") { _NepalResultFiltered(con); } } foreach (Country con in alllCountriesAlphaCodeFilter) { if (con.Name == "Nepal") { Assert.Equal("NP", con.Alpha2Code); } } }
public List <Country> CountryTable() { List <Country> allCountries = RestCountry.All(); return(allCountries); }