public void should_Load_SubCounties() { var regions = _metaService.GetSubCounties(47).ToList(); Assert.IsTrue(regions.Any(x => x.Id > 0)); Assert.IsTrue(regions.Any(x => x.Display == "Select SubCounty")); foreach (var region in regions) { Console.WriteLine(region); } }
private void GetSubCounties() { SubCounties = RegionItem.Init("SubCounty"); Wards = RegionItem.Init("Ward"); try { if (null != SelectedCounty) { SubCounties = _metaService.GetSubCounties(SelectedCounty.Id).ToList(); } } catch { } }