Exemple #1
0
        public void A080_GetList()
        {
            List <Country> countries = countriesService.GetList();

            Assert.AreEqual(numberOfCountries, countries.Count);
            Assert.AreEqual(Country1.PrimaryKey, countries[0].PrimaryKey);
        }
Exemple #2
0
        private void UpdateCountryList()
        {
            List <Country> countries = new List <Country>();

            countries.Add(emptyCountry);
            countries.AddRange(countiresService.GetList(orderedList: true));

            cmbCountry.ValueMember   = "Description";
            cmbCountry.DisplayMember = "Description";
            cmbCountry.DataSource    = countries;
        }