public void SaveMediaServiceAccountToMultipleDeploymentTest()
        {
            string deploymentToTest = string.Empty;

            _dataAccess = new AzureDataAccess(App.Config.Content.ContentProviders[0].MediaServicesSets[1].DataStorageConnections);
            var     acct      = App.Config.Content.ContentProviders[0].MediaServicesSets[1].MediaServicesAccounts[0];
            decimal acctCount = (decimal)_dataAccess.GetAccounts().Distinct().Count();

            //MediaServicesAccount acct = new MediaServicesAccount
            //{
            //    AccountName = App.Config.Content.ContentProviders[0].MediaServicesSets[1].DataStorageConnections[0].AcctName,
            //    Location = "US West",
            //    SubscriptionName = "AMSLiveStream",
            //    AccountCreated = DateTime.Now
            //};
            try
            {
                var acctListCount = _dataAccess.SaveMediaServiceAccount(acct);//, true);

                Assert.IsTrue((acctListCount != 0), "Data Connection / Configuration Error");
                Assert.GreaterOrEqual(acctListCount, acctCount);
            }
            catch (Exception ex)
            {
                Assert.Fail(ex.Message, ex);
            }
        }
 public void GetMediaServiceAccountsTest()
 {
     try
     {
         _dataAccess = new AzureDataAccess(App.Config.Content.ContentProviders[0].MediaServicesSets[1].DataStorageConnections);
         var result = _dataAccess.GetAccounts();
         Assert.IsTrue((result.Count() > 0), "Data Connection Configuration Problem");
     }
     catch (EntityException dataEx)
     {
         Assert.Fail(dataEx.Message, dataEx);
     }
     catch (Exception ex)
     {
         Assert.Fail(ex.Message, ex);
     }
 }