Example #1
0
        public static void ATCRun()
        {
            IATCMediator atcMediator = new ATCMediator();
            Flight       sparrow101  = new Flight(atcMediator);
            Runway       mainRunway  = new Runway(atcMediator);

            atcMediator.RegisterFlight(sparrow101);
            atcMediator.RegisterRunway(mainRunway);
            sparrow101.GetReady();
            mainRunway.Land();
            sparrow101.Land();
        }
Example #2
0
 public void RegisterRunway(Runway runway)
 {
     this.runway = runway;
 }