/// <summary> /// .ctor /// </summary> public SpellChecker(IInputReader inputReader, IOutputWriter outputWriter, IDictionary dictionary, IEditor editor) { _inputReader = inputReader ?? throw new ArgumentNullException(nameof(inputReader)); _outputWriter = outputWriter ?? throw new ArgumentNullException(nameof(outputWriter)); _editor = editor ?? throw new ArgumentNullException(nameof(editor)); _dictionary = dictionary ?? throw new ArgumentNullException(nameof(dictionary)); _dictionary.FillDictionary(_inputReader.GetDictionaryWords()); }