public QueuingSystem(ISystemConfiguration configuration, ISystemClock clock, IEngine engine, ISystemStatistics statistics)
        {
            Statistics = statistics;
            Configuration = configuration;

            Configuration.Devices.RequestHandledEvent += OnRequestHandled;
            engine.NewRequestEvent += OnNewRequest;
            clock.TickEvent += OnTickEvent;
        }
        public void TestInitialize()
        {
            generator = new MockSystemGenerator();

            clock = new SystemClock();
            engine = new Engine(clock, generator);
            devices = new SystemDevices(clock);


            systemDiscipline = new Fifo {TotalSize = 10};

            configuration = new SystemConfiguration(generator, devices, systemDiscipline);

            statistics = new SystemStatistics();

            system = new QueuingSystem(configuration, clock, engine, statistics);

            InitializeDevices();
        }
 public StatisticsView(ISystemStatistics statistics, ISystemClock clock)
 {
     this.statistics = statistics;
     clock.TickEvent += ClockTickEvent;
 }