Beispiel #1
0
 /// <summary>
 /// Инициализирует экземпляр <see cref="TestAnswerProcessing"/>
 /// </summary>
 /// <param name="telegramBotClient">Клиент telegram.</param>
 /// <param name="testStateController">Контроллер состояния пользователя.</param>
 /// <param name="tasksStorage">Хранилище задач.</param>
 /// <param name="tasksProcessing">Обработчик задач.</param>
 /// <param name="statisticsCollector">Сборщик статистики.</param>
 public TestAnswerProcessing(ITelegramBotClient telegramBotClient, ITestStateController testStateController,
                             ITasksStorage tasksStorage, ITasksProcessing tasksProcessing, IStatisticsCollector statisticsCollector)
 {
     _subStates           = new Dictionary <int, UserTestState>();
     _telegramBotClient   = telegramBotClient;
     _tasksProcessing     = tasksProcessing;
     _testStateController = testStateController;
     _tasksStorage        = tasksStorage;
     _statisticsCollector = statisticsCollector;
 }