public HttpResponseMessage Confirm(WebApiJson model)
        {
            ConfirmMessageBatch confirmBatch = HubConfBatch.ConfBatchFromJson(model.Json);

            FileInfo savedFile = fileSrvc.SaveCostcoConfirm(confirmBatch, appSettings);

            FileInfo encryptedFile = null;
            if (savedFile.Exists)
            {
                encryptedFile = gnuPG.EncryptCostcoConfirmFile(savedFile.FullName, appSettings);
            };

            confirmBatch = fileSrvc.CostcoMessageBatchConfirm(savedFile.Name, appSettings);

            HubConfBatch batch = new HubConfBatch(savedFile.Name, confirmBatch);

            return Request.CreateResponse(HttpStatusCode.OK, batch);
        }
 public HubConfBatch CostcoHubConfBatch(string fileName, IAppSettingsService appSettings, IFileService fileSrvc)
 {
     ConfirmMessageBatch confirmBatch = fileSrvc.CostcoMessageBatchConfirm(fileName, appSettings);
     HubConfBatch batch = new HubConfBatch(fileName, confirmBatch);
     return batch;
 }