public Initializator(BuildingInitializator buildingInitializator, ManagerInitializator managerInitializator, PassengerCreator passengerCreator) { this.buildingInitializator = buildingInitializator; this.managerInitializator = managerInitializator; this.passengerCreator = passengerCreator; }
static void Main(string[] args) { BuildingInitializator buildingInitializator = new BuildingInitializator(); ManagerInitializator managerInitializator = new ManagerInitializator(); PassengerCreator passengerCreator = new PassengerCreator(); Initializator initializator = new Initializator(buildingInitializator, managerInitializator, passengerCreator); initializator.Initialize(); System.Threading.Thread.Sleep(600000); }