static void Main(string[] args) { IMediator mediator = new Mediator(); Flight flight1 = new Flight(mediator); Runway runway = new Runway(mediator); mediator.RegisterFlight(flight1); mediator.RegisterRunway(runway); flight1.Land(); runway.Land(); flight1.Land(); Console.ReadLine(); }
public void RegisterRunway(Runway runway) { _runway = runway; }