public JobState(IFileStreamProvider fileStreamProvider, IFileLineCounter fileLineCounter, IFileProcessor fileProcessor, IPercentageCalculator percentageCalculator) { _fileStreamProvider = fileStreamProvider; _fileLineCounter = fileLineCounter; _fileProcessor = fileProcessor; _percentageCalculator = percentageCalculator; }
public DirectoryLineCounter( IFileSystemAccess fileSystem, IFileLineCounter fileLineCounter) { _fileSystem = fileSystem; _fileLineCounter = fileLineCounter; }
private static DirectoryLineCounter CreateSut( IFileSystemAccess fileSystem = null, IFileLineCounter fileLineCounter = null ) { fileSystem ??= new FakeFileSystemAccessBuilder().Build(); fileLineCounter ??= Substitute.For <IFileLineCounter>(); return(new DirectoryLineCounter(fileSystem, fileLineCounter)); }
public FakeFileLineCounterBuilder() { _fake = Substitute.For <IFileLineCounter>(); }
public static void VerifyCountWasCalledOn(IFileLineCounter fake, string expectedFilePath) { fake.Received(1).Count(expectedFilePath); }