public FileRecordDB(IFileIO io, IGuidSource guids, ITimeStampSource timeStamps, string root) { IO = io; Guids = guids; TimeStamps = timeStamps; Root = root; }
public FileIO( TextWriter?consoleLogInfo = null, TextWriter?consoleLogWarn = null, TextWriter?consoleLogError = null, string?logPath = null, ITimeStampSource?timeStampSource = null ) { ConsoleLogInfo = consoleLogInfo ?? Console.Out; ConsoleLogWarn = consoleLogWarn ?? consoleLogInfo ?? Console.Out; ConsoleLogError = consoleLogError ?? consoleLogWarn ?? consoleLogInfo ?? Console.Error; LogPath = logPath; TimeStamps = timeStampSource ?? new TimeStampSource(); }