private static Status CalculateColor(params string[] colors)
 {
     var calculator = new StatusCalculator();
     var jobDetails = from color in colors select new JobDetail() {color = color};
     var status = calculator.Calculate(jobDetails);
     return status;
 }
Пример #2
0
 public void UpdateStatus(IEnumerable<JobDetail> jobDetails)
 {
     var status = new StatusCalculator().Calculate(jobDetails);
     try
     {
         ExecuteCmd(status);
     }
     catch (Exception exception)
     {
         WriteLog(exception.Message);
     }
 }