コード例 #1
0
 public WordGeneration(WordsGenerationOptions options, IRandomGenerator randomGenerator,
                       GetWordParametersValidator validator, IFileReader fileReader, IMemoryCache memoryCache)
 {
     _randomGenerator = randomGenerator;
     _validator       = validator;
     _words           = LoadDictionary(memoryCache, fileReader, options.WordsDictionaryLocation);
 }
コード例 #2
0
 public WordController(GetWordParametersValidator validator, WordGeneration wordGeneration)
 {
     _validator      = validator;
     _wordGeneration = wordGeneration;
 }