/// <summary> /// Gets all country region. /// </summary> /// <returns>Get All Country Region</returns> public List <Country> GetAllCountryRegion() { ICountryRegionDAL countryRegionDAL = new CountryRegionDAL(); List <Country> result = countryRegionDAL.GetCountryRegion(); return(result); }
public void GetAllRegions() { ICountryRegionDAL regionDAL = new CountryRegionDAL(); List <Country> dummy = this.GetDummyRegions(); List <Country> actual = regionDAL.GetCountryRegion(); for (int i = 0; i < dummy.Count; i++) { Assert.AreEqual(dummy[i].CountryID, actual[i].CountryID); Assert.AreEqual(dummy[i].Store, actual[i].Store); Assert.AreEqual(dummy[i].City, actual[i].City); Assert.AreEqual(dummy[i].State, actual[i].State); Assert.AreEqual(dummy[i].CountryRegion, actual[i].CountryRegion); } }