Esempio n. 1
0
        public string ProcessBatch(TextTemplateBatch textTemplateBatch)
        {
            var pathToExtractZipTo = getWorkingFolderPath.GetPathToWorkingFolder() +
                                     TextTemplateBatchManagerSettings.TextTemplateBatchProcessTemporaryFolderName +
                                     Path.DirectorySeparatorChar +
                                     guidGetter.GetGuid();

            fileSystem.CreateFolder(pathToExtractZipTo);

            var pathToZip = getWorkingFolderPath.GetPathToWorkingFolder() +
                            TextTemplateBatchManagerSettings.TextTemplateBatchFileUploadFolderName +
                            Path.DirectorySeparatorChar +
                            textTemplateBatch.Id +
                            Path.DirectorySeparatorChar + textTemplateBatch.ZipFilename;

            textTemplateZipProcessor.ProcessZip(pathToZip, pathToExtractZipTo);

            return(pathToExtractZipTo);
        }
 public string SaveAndReturnId(TextTemplateBatch textTemplateBatch)
 {
     return(easyObjectStore.SaveAndReturnId(textTemplateBatch));
 }