Пример #1
0
        public void SendStartCommand(ushort productType, ushort productionSpeed, ushort batchSize)
        {
            calculator.CalculateError((ProductType)productType, productionSpeed);
            batchManager.CreateBatch(productType, productionSpeed, batchSize);
            int batchId = batchManager.CurrentBatch.BatchReportID;

            persistenceFacade.SetBatchParameters(productType, productionSpeed, batchSize, batchId);
            SaveBatchReport();
            startTime         = DateTime.Now;
            productionRunning = true;
            persistenceFacade.SendCommand((int)Commands.START);
        }