public FileWordRepository(IWordLoader wordLoader)
 {
     _wordLoader = wordLoader;
     _words      = _wordLoader
                   .LoadFromFile(filePath)
                   .OrderBy(w => w.Text);
 }
示例#2
0
 public WordsSeeder(IWordsRepository wordsRepository, IWordLoader wordLoader, IAppConfig appConfig)
 {
     _wordsRepository = wordsRepository;
     _wordLoader      = wordLoader;
     _appConfig       = appConfig;
 }
示例#3
0
 public WordSearcher(IWordLoader wordLoader, IRegexBuilder regexBuilder)
 {
     _wordLoader   = wordLoader;
     _regexBuilder = regexBuilder;
 }