public void ChangeMyPassword() { AirlineCompany airline_before_modification = airlineFacade.GetAirlineById(1); string old_password = airline_before_modification.user.Password; airlineFacade.ChangeMyPassword(airlineToken, "airline_passsword", "new_airline_passsword"); string new_password = "******"; Assert.AreNotEqual(old_password, new_password); }
public void ModifyAirlineDetails() { AirlineCompanies air = new AirlineCompanies(1, "airforce", 3, 3); loggedInAirline.ModifyAirlineDetails(airline, air); AirlineCompanies air_for_test = loggedInAirline.GetAirlineById(airline, 1); Assert.AreEqual(air, air_for_test); }
public void Modify_airline_details() { AirlineCompany airline = new AirlineCompany("Delta", 5, 2); airline.Id = 1; administratorFacade.UpdateAirlineDetails(admin_token, airline); AirlineCompany airline_before_modification = airlineFacade.GetAirlineById(1); Assert.AreEqual(airline, airline_before_modification); }