コード例 #1
0
        private async Task UploadFilesToBucket(string filePath)
        {
            var uploadPath = Path.Combine(BlaiseConfigurationHelper.OnlineFileBucket);

            await CloudStorageHelper.GetInstance().UploadFolderToBucketAsync(
                uploadPath, filePath);
        }
コード例 #2
0
        public async Task CleanUpScenario()
        {
            InstrumentHelper.GetInstance().UninstallSurvey();

            await CloudStorageHelper.GetInstance().DeleteFileInBucketAsync(
                BlaiseConfigurationHelper.InstrumentPackageBucket,
                BlaiseConfigurationHelper.InstrumentPackage);
        }
コード例 #3
0
 public async Task GivenIHaveAQuestionnaireIWantToInstall()
 {
     await CloudStorageHelper.GetInstance().UploadToBucketAsync(
         BlaiseConfigurationHelper.InstrumentPackageBucket,
         BlaiseConfigurationHelper.InstrumentPackagePath);
 }
コード例 #4
0
 private async Task <string> DownloadPackageFromBucket(string path)
 {
     return(await CloudStorageHelper.GetInstance().DownloadFromBucketAsync(
                BlaiseConfigurationHelper.InstrumentPackageBucket,
                BlaiseConfigurationHelper.InstrumentFile, path));
 }
コード例 #5
0
 public async Task CleanUpOnlineFiles()
 {
     await CloudStorageHelper.GetInstance().DeleteFilesInBucketAsync(BlaiseConfigurationHelper.OnlineFileBucket,
                                                                     BlaiseConfigurationHelper.InstrumentName);
 }
 public async Task GivenThereIsAnQuestionnaireAvailableInABucket()
 {
     await CloudStorageHelper.GetInstance().UploadToBucketAsync(
         BlaiseConfigurationHelper.InstrumentPackageBucket,
         BlaiseConfigurationHelper.InstrumentPackage);
 }
コード例 #7
0
 private async Task UploadFilesToBucket(string filePath)
 {
     await CloudStorageHelper.GetInstance().UploadFolderToBucketAsync(
         BlaiseConfigurationHelper.OnlineFileBucket,
         filePath);
 }