예제 #1
0
        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);
            }
        }
예제 #2
0
 private void GetSubCounties()
 {
     SubCounties = RegionItem.Init("SubCounty");
     Wards       = RegionItem.Init("Ward");
     try
     {
         if (null != SelectedCounty)
         {
             SubCounties = _metaService.GetSubCounties(SelectedCounty.Id).ToList();
         }
     }
     catch { }
 }