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 = ""
         }
     };
 }
コード例 #2
0
 public DQTFileTransferStatusService(IDQTFileTransferService dqtFileTransferService, IRollbarService log, IAuthorize authorize)
 {
     _dqtFileTransferService = dqtFileTransferService;
     _log       = log;
     _authorize = authorize;
 }
コード例 #3
0
 public DQTCsvProcessor(ICSVProcessor csvProcessor, IRollbarService log, IDQTFileTransferService dqtFileTransferService)
 {
     this.csvProcessor           = csvProcessor;
     this.log                    = log;
     this.dqtFileTransferService = dqtFileTransferService;
 }
コード例 #4
0
 public DQTCsvToBlob(IRollbarService log, ISFTPToBlobProcessor processor, IDQTFileTransferService dqtFileTransferService)
 {
     _log       = log;
     _processor = processor;
     _dqtFileTransferService = dqtFileTransferService;
 }