예제 #1
0
        private void WriteFile(DataFileRepository <TransferControlMaster> transferControlWriter,
                               IEnumerable <TransferControlMaster> masters)
        {
            var masterControlFileName = _configuration.GetInboundMasterControlFilename();
            var inboundFileDirectory  = _configuration.GetInboundFileDirectory();

            transferControlWriter.Save(masters.OrderByDescending(o => o.Filename), Path.Combine(inboundFileDirectory, masterControlFileName));
        }
예제 #2
0
 public void SetDirectories()
 {
     Directory.CreateDirectory(_configurationManager.GetOutboundFileDirectory());
     Directory.CreateDirectory(_configurationManager.GetOutboundFileProcessedDirectory());
     Directory.CreateDirectory(_configurationManager.GetInboundFileProcessedDirectory());
     Directory.CreateDirectory(_configurationManager.GetInboundFileDirectory());
     Directory.CreateDirectory(_configurationManager.GetInboundMasterControlFilename());
 }