public void Remove() { countryDAO.Add(new Country("Israel")); AirlineCompany theAirline = new AirlineCompany("ELAL", "ELAL123", "ELALPASSWORD", countryDAO.GetCountryByName("Israel").ID); airlineDAO.Add(theAirline); theAirline = airlineDAO.GetAirlineByName("ELAL"); airlineDAO.Remove(theAirline); Assert.AreEqual(null, airlineDAO.GetAirlineByName("ELAL")); }
// Remove Some Airline Company. public void RemoveAirline(LoginToken <Administrator> token, AirlineCompany airline) { if (UserIsValid(token)) { _airlineDAO.Remove(airline); } }