Esempio n. 1
0
        public void Update()
        {
            Country countryTest = new Country("Israel");

            countryDAO.Add(countryTest);
            countryTest = countryDAO.GetCountryByName("Israel");

            countryTest.CountryName = "India";
            countryDAO.Update(countryTest);

            Assert.AreEqual(countryTest.ID, countryDAO.GetCountryByName("India").ID);
            Assert.AreEqual("India", countryDAO.Get(countryTest.ID).CountryName);
        }