Exemplo n.º 1
0
        private void AddTestData()
        {
            Regions.Region america = regionsService.GetByDescription("AMERICA");
            Regions.Region eurpoe  = regionsService.GetByDescription("EUROPE");
            Regions.Region asia    = regionsService.GetByDescription("ASIA-PACIFIC");

            Country country = new Country("", "JAPAN", asia.PrimaryKey);

            countriesService.Save(ref country);

            country = new Country("", "GERMANY", eurpoe.PrimaryKey);
            countriesService.Save(ref country);

            country = new Country("", "USA", america.PrimaryKey);
            countriesService.Save(ref country);

            country = new Country("", "UNITED KINGDOM", eurpoe.PrimaryKey);
            countriesService.Save(ref country);

            country = new Country("", "FRANCE", eurpoe.PrimaryKey);
            countriesService.Save(ref country);
        }
Exemplo n.º 2
0
        public void A030_GetByDescription()
        {
            Region region = regionsService.GetByDescription(Region1.Description);

            Assert.AreEqual(Region1.PrimaryKey, region.PrimaryKey);
        }