static void Main(string[] args) { var atc = new ATCMediator(); var flight = new Flight(atc); var runway = new Runway(atc, true); atc.Flight = flight; atc.Runway = runway; flight.AskForPermissionToLand(); //runway.NotifyEmergency("There has been an emergency"); flight.Status(); }
public bool AskForPermissionToLand() { return(Runway.CheckIfClear()); }