public CodeTriangleNew(IFileService fileService, ITriangular triangular, IWordConverter wordConverter) { _fileService = fileService; _triangular = triangular; _wordConverter = wordConverter; _triangular.Number = 26; Words = new List<string>(); }
public IWordConverter GetConverterByMethod(WordConvertingMethod method) { IWordConverter converter = null; if (_converters.Any(d => d.MethodName == method)) { converter = _converters.First(d => d.MethodName == method); } else { throw new Exception("Cannot find format converter!"); } return(converter); }
public WordConverterTest() { _wordConverter = _wordConverter.Resolve();; }
public WordsFilter(IWordAnalyzer analyzer, IWordConverter converter) { _analyzer = analyzer; _converter = converter; }
public NameScore(IFileService fileService, IWordConverter wordConverter) { _fileService = fileService; _wordConverter = wordConverter; }
public async Task <string> ConvertSentencesAsync(SentenceProcessResult sentences, WordConvertingMethod method) { IWordConverter converter = _converterProvider.GetConverterByMethod(method); return(await converter.ConvertSentencesAsync(sentences)); }
public WordController(IWordService wordService, IWordConverter wordConverter) { _wordService = wordService ?? throw new ArgumentNullException(nameof(wordService)); _wordConverter = wordConverter ?? throw new ArgumentNullException(nameof(wordConverter)); }
public ValuesController(IWordConverter wordConverter, ILogger <WordConverter> logger) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _wordConverter = wordConverter ?? throw new ArgumentNullException(nameof(wordConverter)); }
public WordProcessor(IWordConverter wordConverter, IWordFilter wordFilter) { this.wordConverter = wordConverter; this.wordFilter = wordFilter; }