public void A090_GetList() { List <Region> regions = regionsService.GetList(); Assert.AreEqual(expectedNumberOfRecords, regions.Count); Assert.AreEqual(Region1.PrimaryKey, regions[0].PrimaryKey); }
private void UpdateRegionList() { List <Regions.Region> regions = new List <Regions.Region>(); regions.Add(emptyRegion); regions.AddRange(regionsService.GetList(orderedList: true)); cmbRegion.ValueMember = "Description"; cmbRegion.DisplayMember = "Description"; cmbRegion.DataSource = regions; }