Beispiel #1
0
 public DataFileParser(IFileManager fileManager, vendorproductfileinventorytask task)
 {
     _fileManager       = fileManager;
     _task              = task;
     _updatedVendorSKUs = new List <string>();
     _productRepo       = new ProductRepository();
 }
 public static IFileManager CreateFileManager(FileInfo fileInfo, vendorproductfileinventorytask fileSetting, FileType fileType)
 {
     if (fileType == FileType.Excel)
     {
         return(new ExcelFileManager(fileInfo, fileSetting));
     }
     else
     {
         return(new CsvFileManager(fileInfo, fileSetting));
     }
 }
Beispiel #3
0
 public VendorProductFileInventoryTaskService(vendorproductfileinventorytask task)
 {
     _task         = task;
     _service      = new VendorProductService(new ImageHelper(new PersistenceHelper()), new LogService());
     _ftpRequestor = new FtpWebRequestor(task.FtpServer,
                                         task.FtpUser,
                                         task.FtpPassword,
                                         task.FtpPort,
                                         task.RemoteFolder);
     _ftpFileFullPath        = task.FtpFileFullPath;
     _updatedEisSupplierSKUs = new List <string>();
 }
Beispiel #4
0
 public ExcelFileManager(FileInfo fileInfo, vendorproductfileinventorytask task)
 {
     _fileInfo = fileInfo;
     _task     = task;
 }