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 SaveMediaServiceAccountToSingleDeploymentTest()
        {
            //
            var deploymentToTest = App.Config.Content.ContentProviders[0].MediaServicesSets[1].DataStorageConnections[0];

            MediaServicesAccount acct = new MediaServicesAccount
            {
                AccountName      = App.Config.Content.ContentProviders[0].MediaServicesSets[1].DataStorageConnections[0].AcctName,
                Location         = "US West",
                SubscriptionName = "AMSLiveStream",
                AccountCreated   = DateTime.Now
            };

            _dataAccess = new AzureDataAccess(App.Config.Content.ContentProviders[0].MediaServicesSets[1].DataStorageConnections);
            try
            {
                var acctList = _dataAccess.SaveMediaServiceAccount(acct, deploymentToTest);//, true);

                Assert.IsTrue((acctList != null), "Data Connection / Configuration Error");
            }
            catch (Exception ex)
            {
                Assert.Fail(ex.Message, ex);
            }
        }