Exemplo n.º 1
0
        public async Task CountrList_should_return_Country_values()
        {
            var result = await commonClient.CountrList();

            List <string> containCountryName = new List <string> {
                "Türkiye", "Brezilya", "Bulgaristan"
            };

            Assert.NotNull(result);
            Assert.True(result.Where(q => containCountryName.Contains(q.Name)).ToList().Count() == containCountryName.Count());
        }
Exemplo n.º 2
0
 public async Task <ActionResult> Index()
 {
     return(View(await commonClient.CountrList()));
 }
 public async Task <ActionResult <List <CountryModel> > > CountrList()
 {
     return(await commonClient.CountrList());
 }