Example #1
0
        public void Cancel(int id)
        {
            Examination examination = _examinationRepository.Get(id);

            examination.Cancel(_clock.GetTimeLimit());
            _examinationRepository.Update(examination);
        }
 private DateTime FixTime(DateTime time)
 {
     if (time < _clock.GetTimeLimit())
     {
         return(_clock.GetTimeLimit());
     }
     else
     {
         return(time);
     }
 }