public void GivenIHaveTheStorageAbstraction(string account)
 {
     account = Constants.WabsProtocolSchemeName + account;
     var factory = ServiceLocator.Instance.Locate<IWabStorageAbstractionFactory>();
     // NOTE: when run against production we should pull the key out of the valid creds file.
     var creds = new WindowsAzureStorageAccountCredentials() { Name = account, Key = string.Empty };
     abstraction = factory.Create(creds);
 }
        public void GivenIHaveTheStorageAbstraction(string account)
        {
            account = Constants.WabsProtocolSchemeName + account;
            var factory = ServiceLocator.Instance.Locate <IWabStorageAbstractionFactory>();
            // NOTE: when run against production we should pull the key out of the valid creds file.
            var creds = new WindowsAzureStorageAccountCredentials()
            {
                Name = account, Key = string.Empty
            };

            abstraction = factory.Create(creds);
        }
 public override void Initialize()
 {
     base.Initialize();
     base.ApplyIndividualTestMockingOnly();
     this.storageAccount = GetWellKnownStorageAccounts().First();
     this.storageClient =
         new WabStorageAbstraction(
             new WindowsAzureStorageAccountCredentials
             {
                 Key = this.storageAccount.Key,
                 Name = this.storageAccount.Name,
                 ContainerName = this.storageAccount.Container
             });
     jobSubmissionClient =
         new HDInsightHadoopClient(
             new JobSubmissionCertificateCredential(
                 Cluster.Value.SubscriptionId,
                 GetValidCredentials().Certificate,
                 Cluster.Value.Name));
     this.CleanupCluster();
 }
 public override void Initialize()
 {
     base.Initialize();
     base.ApplyIndividualTestMockingOnly();
     this.storageAccount = GetWellKnownStorageAccounts().First();
     this.storageClient  =
         new WabStorageAbstraction(
             new WindowsAzureStorageAccountCredentials
     {
         Key           = this.storageAccount.Key,
         Name          = this.storageAccount.Name,
         ContainerName = this.storageAccount.Container
     });
     jobSubmissionClient =
         new HDInsightHadoopClient(
             new JobSubmissionCertificateCredential(
                 Cluster.Value.SubscriptionId,
                 GetValidCredentials().Certificate,
                 Cluster.Value.Name));
     this.CleanupCluster();
 }