public WordLadderApp(IInputValidator inputValidator, IWordDictionaryService wordDictionaryService, IWordLadderSolver wordladderSolver, IOpenFileHelper openFileHelper, IFileWrapper fileWrapper) { _inputValidator = inputValidator; _wordDictionaryService = wordDictionaryService; _wordladderSolver = wordladderSolver; _openFileHelper = openFileHelper; _fileWrapper = fileWrapper; }
public WordLadderAppTests() { _inputValidator = Substitute.For <IInputValidator>(); _wordDictionaryService = Substitute.For <IWordDictionaryService>(); _wordLadderSolver = Substitute.For <IWordLadderSolver>(); _openFileHelper = Substitute.For <IOpenFileHelper>(); _fileWrapper = Substitute.For <IFileWrapper>(); _sut = new WordLadderApp(_inputValidator, _wordDictionaryService, _wordLadderSolver, _openFileHelper, _fileWrapper); }