public int Count(string folderPath) { var totalLines = 0; var files = _fileSystem.GetFilesInFolder(folderPath, "*.cs"); foreach (var file in files) { totalLines += _fileLineCounter.Count(file); } return(totalLines); }
public FakeFileLineCounterBuilder WithCountReturning(string filePath, int lineCount) { _fake.Count(filePath).Returns(lineCount); return(this); }