private void LoadPublishSettings(AzureManageSubscriptionsDialog manageSubscriptionsDialog, string publishSettingsFilePath)
        {
            manageSubscriptionsDialog.ClickCertificates();

            while (manageSubscriptionsDialog.SubscriptionsListBox.Count > 0)
            {
                manageSubscriptionsDialog.SubscriptionsListBox[0].Select();
                manageSubscriptionsDialog.ClickRemove();
                WaitForDialogToReplace(manageSubscriptionsDialog.Element);
                VisualStudioApp.CheckMessageBox(TestUtilities.MessageBoxButton.Yes);
            }

            using (var importSubscriptionDialog = manageSubscriptionsDialog.ClickImport()) {
                importSubscriptionDialog.FileName = publishSettingsFilePath;
                importSubscriptionDialog.ClickImport();
            }
        }
示例#2
0
 public void CheckMessageBox(MessageBoxButton button, params string[] text)
 {
     VisualStudioApp.CheckMessageBox(button, text);
 }
示例#3
0
 public void CheckMessageBox(params string[] text)
 {
     VisualStudioApp.CheckMessageBox(text);
 }