Exemple #1
0
        public void A090_GetList()
        {
            List <Region> regions = regionsService.GetList();

            Assert.AreEqual(expectedNumberOfRecords, regions.Count);
            Assert.AreEqual(Region1.PrimaryKey, regions[0].PrimaryKey);
        }
Exemple #2
0
        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;
        }