public BotAnswerer() { _questionRepository = new QuestionRepository(QuestionRepositoryFilePath); _aphorismRepository = new AphorismsRepository(AphorismRepositoryFilePath); _byeRepository = new ByeRepository(ByeRepositoryFilePath); _helloRepository = new HelloRepository(HelloRepositoryFilePath); _jokesRepository = new JokesRepository(JokesRepositoryFilePath); _myNameRepository = new MyNameRepository(MyNameRepositoryFilePath); }
public BotThread() { Questions = new Queue <string>(); _cancellationTokenSource = new CancellationTokenSource(); _questionRepository = new QuestionRepository(QuestionRepositoryFilePath); _aphorismRepository = new AphorismsRepository(AphorismRepositoryFilePath); _byeRepository = new ByeRepository(ByeRepositoryFilePath); _helloRepository = new HelloRepository(HelloRepositoryFilePath); _jokesRepository = new JokesRepository(JokesRepositoryFilePath); _myNameRepository = new MyNameRepository(MyNameRepositoryFilePath); }