public EmergencyManagementSystem(EmergencyRegister register, EmergencyFactory emergencyFactory, CenterFactory centerFactory)
    {
        this.register         = register;
        this.emergencyFactory = emergencyFactory;
        this.centerFactory    = centerFactory;

        this.InitialiseEmergencyCenters();
    }
Beispiel #2
0
        public static void Main()
        {
            IEmergencyFactory          emergencyFactory = new EmergencyFactory();
            IServiceCenterFactory      centerFactory    = new ServiceCenterFactory();
            IEmergencyManagementSystem manager          = new EmergencyManagementSystem(emergencyFactory, centerFactory);
            IWriter writer = new ConsoleWriter();
            IReader reader = new ConsoleReader();

            IEngine engine = new Engine(manager, reader, writer);

            engine.Run();
        }
Beispiel #3
0
    public static void Main()
    {
        var register         = new EmergencyRegister();
        var emergencyFactory = new EmergencyFactory();
        var centerFactory    = new CenterFactory();
        var manager          = new EmergencyManagementSystem(register, emergencyFactory, centerFactory);

        var reader = new ConsoleReader();
        var writer = new ConsoleWriter();
        var engine = new Engine(reader, writer, manager);

        engine.Run();
    }