public void GetCountryTest() { var plantSetUpDal = new PlantInfo(); var result = plantSetUpDal.GetCountry(); Assert.IsNotNull(result); Assert.IsTrue(result.Count > 0); }
public IHttpActionResult GetCountry() { var countryList = _info.GetCountry(); if (countryList.Count > 0) { return(Ok(countryList)); } return(BadRequest("Country list is empty")); }
public IHttpActionResult GetCountry() { List <string> countryList = _info.GetCountry(); if (countryList.Count > 0) { return(Ok(countryList)); } else { return(BadRequest("Country list is empty")); } }