Exemplo n.º 1
0
 public static void PrepareForTakeOff(string flighNo, string strip)
 {
     AirPlane plane = new AirPlane();
     plane.Clean();
     ControlTower tower = new ControlTower();
     DateTime time = tower.FindNextSlotForStrip(strip);
     Flight flight = new Flight(plane);
     flight.DepartureAtTime(time);
 }
Exemplo n.º 2
0
 public Flight(AirPlane plane)
 {
     this.plane = plane;
 }