Ejemplo n.º 1
0
 public void IntializeWorkItem(
     UpdateOrdersAndInventoryConfigSection updateOrdersAndInventoryConfigSection,
     AccountSettingsConfigSection accountSettingsConfigSection,
     LoggingLog processingLog,
     WorkItemEnum workItemEnum, 
     string fileCommonName, 
     string logPath, 
     string pathForDataOutputWithYearMonth,
     DateTime startRange, 
     DateTime endRange)
 {
     UpdateOrdersAndInventoryConfigSection = updateOrdersAndInventoryConfigSection;
     AccountSettingsConfigSection = accountSettingsConfigSection;
     ProcessingLog = processingLog;
     WorkItemEnum = workItemEnum;
     FileCommonName = fileCommonName;
     LogPath = logPath;
     PathForDataOutputWithYearMonth = pathForDataOutputWithYearMonth;
     StartRange = startRange;
     EndRange = endRange;
 }
 private void ExtractConfigurationFiles()
 {
     Console.WriteLine("Getting configuration items");
     _updateOrdersAndInventoryConfigSection = new UpdateOrdersAndInventoryConfigSection();
     _updateOrdersAndInventoryConfigSection.SetConfigItemsFromFile(_configurationPath);
     _accountSettingsConfigSection = new AccountSettingsConfigSection();
     _accountSettingsConfigSection.SetConfigItemsFromFile(_updateOrdersAndInventoryConfigSection.AccountSettings.Value);
 }