public LogAtFile(string fileName) { if (string.IsNullOrEmpty(fileName)) { throw new ArgumentNullException("Filename could not be empty."); } _file = new FileIO.TextFile(fileName); }
public APILoggerTextFile(string path) { if (string.IsNullOrEmpty(path)) { throw new ArgumentNullException("Invalid path"); } _fileOperation = new FileIO.TextFile(path); }
public LogAtFile(FileIO.IFileOperation f) { if (f == null) { throw new ArgumentNullException("Invalid FileOperation."); } _file = f; }
public APILoggerTextFile(FileIO.IFileOperation fileOperation) { if (fileOperation == null) { throw new ArgumentNullException("Invalid FileOperation"); } _fileOperation = fileOperation; }