public WordGeneration(WordsGenerationOptions options, IRandomGenerator randomGenerator, GetWordParametersValidator validator, IFileReader fileReader, IMemoryCache memoryCache) { _randomGenerator = randomGenerator; _validator = validator; _words = LoadDictionary(memoryCache, fileReader, options.WordsDictionaryLocation); }
public WordController(GetWordParametersValidator validator, WordGeneration wordGeneration) { _validator = validator; _wordGeneration = wordGeneration; }