예제 #1
0
        public string CheckForExclusion()
        {
            Exclusion exclusion  = null;
            var       currChecks = _checks.Where(check => check.IsDirty);

            foreach (var check in currChecks)
            {
                if (check.Check() <= _generator.NextDouble01())
                {
                    continue;
                }
                exclusion = _exclusionStore.GetExclusion(check.ExclusionType);
                if (exclusion != null)
                {
                    break;
                }
            }

            if (exclusion == null)
            {
                IsNecessary = false;
                return(null);
            }
            return(exclusion.Id);
        }
예제 #2
0
 private void GoDown()
 {
     _playerInfoHolder.CurrentCourse    = 0;
     _playerInfoHolder.Points           = 0;
     _playerInfoHolder.UniversityPoints = 0;
     _playerInfoHolder.TasksTaken       = 0;
     _playerInfoHolder.PrivateLife      = _playerInfoHolder.MaxPrivateLife;
     _playerInfoHolder.IsClassroom      = false;
     if (_type == TestType.EIT)
     {
         _reasonHandler.ShowReason(_exclusionService.GetExclusion(ExclusionType.FailEIT)?.Id);
     }
     if (_type == TestType.Session)
     {
         _reasonHandler.ShowReason(_exclusionService.GetExclusion(ExclusionType.FailSession)?.Id);
     }
 }