Esempio n. 1
0
 public DataFileParser(IFileManager fileManager, vendorproductfileinventorytask task)
 {
     _fileManager       = fileManager;
     _task              = task;
     _updatedVendorSKUs = new List <string>();
     _productRepo       = new ProductRepository();
 }
Esempio n. 2
0
 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));
     }
 }
Esempio n. 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>();
 }
Esempio n. 4
0
 public ExcelFileManager(FileInfo fileInfo, vendorproductfileinventorytask task)
 {
     _fileInfo = fileInfo;
     _task     = task;
 }