public void SetUp() { _fileReader = new FileReader(); _sourceFile = new FileInfo(Path.Combine(Path.GetDirectoryName(GetType().Assembly.Location), "wordlist.txt")); _wordListDataSource = new WordListFromFileDataSource(_fileReader, _sourceFile); _sut = new WordListReader(_wordListDataSource); }
public void SetUp() { _wordListDataSource = A.Fake <IWordListDataSource>(); _sut = new WordListReader(_wordListDataSource); }