public void Get() { Country addedCountry = new Country("Israel"); countryDAO.Add(addedCountry); addedCountry = countryDAO.GetCountryByName("Israel"); Assert.AreEqual("Israel", countryDAO.Get(addedCountry.ID).CountryName); }
public void RemoveCountry_Test() { FlightCenterSystem.Instance.Login(out FacadeBase facadeBase, out ILoginToken loginToken, "danny121121", "fdsaa23"); LoginToken <Administrator> token = (LoginToken <Administrator>)loginToken; LoggedInAdministratorFacade facade = (LoggedInAdministratorFacade)facadeBase; Country country = _countryDAO.Get(3); facade.RemoveCountry(token, country); Assert.AreEqual(_countryDAO.GetAll().Count, 4); }