public DQTFileTransferServiceTests() { _repositoryMock = new Mock <IRepository <DQTFileTransfer> >(); _dqtFileTransferService = new DQTFileTransferService(_repositoryMock.Object); mockFileTransferResults = new List <DQTFileTransfer> { new DQTFileTransfer() { LastRun = today, Status = DQTFileTransferStatus.Failure.ToString(), Error = "File not found" }, new DQTFileTransfer() { LastRun = today.AddDays(-1), Status = DQTFileTransferStatus.Success.ToString(), Error = "" }, new DQTFileTransfer() { LastRun = today.AddDays(-2), Status = DQTFileTransferStatus.Failure.ToString(), Error = "File columns didn't match" }, new DQTFileTransfer() { LastRun = today.AddDays(-3), Status = DQTFileTransferStatus.Success.ToString(), Error = "" }, new DQTFileTransfer() { LastRun = today.AddDays(-4), Status = DQTFileTransferStatus.Success.ToString(), Error = "" } }; }
public DQTFileTransferStatusService(IDQTFileTransferService dqtFileTransferService, IRollbarService log, IAuthorize authorize) { _dqtFileTransferService = dqtFileTransferService; _log = log; _authorize = authorize; }
public DQTCsvProcessor(ICSVProcessor csvProcessor, IRollbarService log, IDQTFileTransferService dqtFileTransferService) { this.csvProcessor = csvProcessor; this.log = log; this.dqtFileTransferService = dqtFileTransferService; }
public DQTCsvToBlob(IRollbarService log, ISFTPToBlobProcessor processor, IDQTFileTransferService dqtFileTransferService) { _log = log; _processor = processor; _dqtFileTransferService = dqtFileTransferService; }