public CriticalMomentService(
     CriticalMomentRepository criticalMoments,
     ITrainingService trainingService,
     StateRecordRepository stateRecors,
     IStressRecognitionService stressRecognitionService,
     IConfiguration configuration)
 {
     this.criticalMoments               = criticalMoments;
     this.trainingService               = trainingService;
     this.stateRecors                   = stateRecors;
     this.stressRecognitionService      = stressRecognitionService;
     this.idlenessMinutesForNewTraining = configuration.GetValue <int>("IdlenessMinutesForNewTraining");
 }
 public StateRecordService(StateRecordRepository stateRecords)
 {
     this.stateRecords = stateRecords;
 }