public WordHelper(IWebDictionaryRequestHelper webDictionaryRequestHelper, IWordExistenceHelper wordExistenceHelper, IWordDefinitionHelper wordDefinitionHelper, IFileHelper fileHelper, ITemporaryDefinitionHelper temporaryDefinitionHelper) { _webDictionaryRequestHelper = webDictionaryRequestHelper; _wordExistenceHelper = wordExistenceHelper; _wordDefinitionHelper = wordDefinitionHelper; _fileHelper = fileHelper; _temporaryDefinitionHelper = temporaryDefinitionHelper; }
public StrippedSuffixTests() { _webDictionaryRequestHelper = Substitute.For <IWebDictionaryRequestHelper>(); _wordExistenceHelper = Substitute.For <IWordExistenceHelper>(); _wordDefinitionHelper = Substitute.For <IWordDefinitionHelper>(); _fileHelper = Substitute.For <IFileHelper>(); _temporaryDefinitionHelper = Substitute.For <ITemporaryDefinitionHelper>(); _wordExistenceHelper .DoesWordExist(Arg.Any <string>()) .Returns(true); }
public AutomaticallySetTemporaryDefinitions() { TestFileHelper.Create(Filename); var json = TestFileHelper.Read(Filename); _webDictionaryRequestHelper = Substitute.For <IWebDictionaryRequestHelper>(); _wordExistenceHelper = Substitute.For <IWordExistenceHelper>(); _wordDefinitionHelper = Substitute.For <IWordDefinitionHelper>(); _fileHelper = new FileHelper(); _filenameHelper = Substitute.For <IFilenameHelper>(); _filenameHelper.GetGuessedWordsFilename().Returns(Filename); _filenameHelper.GetDictionaryFilename().Returns(Filename); _wordService = new WordService(_wordExistenceHelper, _wordHelper, _wordDefinitionHelper, _fileHelper, _filenameHelper); _dictionary = _wordService.GetDictionary(); }