public ProfessionPairGenerator()
 {
     try
     {
         jsonString            = Encoding.UTF8.GetString(Properties.Resources.professions);
         professionPairStorage = new ProfessionPairStorage();
     }
     catch (Exception ex)
     {
         string message = "Pair generator. Get Json string error";
         ExceptionHandler.CriticalException(ex, message);
     }
 }
예제 #2
0
 public override void CreateTest()
 {
     try
     {
         comparisonQuestionsStorage     = GenerateComparisonQuestions();
         CurrentComparisonQuestionIndex = 0;
         currentComparisonQuestion      = comparisonQuestionsStorage[CurrentComparisonQuestionIndex];
         answerStack.Clear();
     }
     catch (IndexOutOfRangeException ex)
     {
         string message = "Holland test. Comparison question index error.";
         ExceptionHandler.CriticalException(ex, message);
     }
     catch (Exception ex)
     {
         ExceptionHandler.CriticalException(ex);
     }
 }