private void InitializeUi(EnvironmentType environment)
 {
     UpdateUiWithQueueNameForEnvironment(environment.MessageQueueName(), environment);
     UpdateUiWithTopicNameForEnvironment(environment.AzureTopicName(), environment);
     UpdateUiWithHostForEnvironment(environment);
     UpdateUiWithPrefixForEnvironment(environment);
     UpdateUiWithActionMessage(environment);
     ClearSuccessFailureListForEnvironment(environment);
 }
        /// <summary>
        /// Delete a Message Queue, if it exists, and indicate if the attempt was successful.
        /// </summary>
        public bool DeleteQueue()
        {
            string queueName   = EnvironmentType.MessageQueueName();
            bool   queueExists = QueueExists;

            if (queueExists)
            {
                _namespaceManager.DeleteQueueAsync(queueName).Wait();
                queueExists = QueueExists;
            }

            return(!queueExists);
        }