public void should_Load_Counties() { var regions = _metaService.GetCounties().ToList(); Assert.IsTrue(regions.Any(x => x.Id > 0)); Assert.IsTrue(regions.Any(x => x.Display == "Select County")); foreach (var region in regions) { Console.WriteLine(region); } }
public void Init(string clientinfo, string indexId) { ClientInfo = clientinfo; if (!string.IsNullOrWhiteSpace(indexId)) { var indexJson = _settings.GetValue(nameof(IndexClientDTO), ""); if (!string.IsNullOrWhiteSpace(indexJson)) { IndexClientDTO = JsonConvert.DeserializeObject <IndexClientDTO>(indexJson); if (null != IndexClientDTO) { Title = $"Contacts [{IndexClientDTO.RelType}]"; } } } Counties = _metaService.GetCounties().ToList(); }