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)); } }
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>(); }
public ExcelFileManager(FileInfo fileInfo, vendorproductfileinventorytask task) { _fileInfo = fileInfo; _task = task; }