/// <summary>
        ///   It tries to read the <see cref="EventHubsNamespaceConnectionString"/> environment variable.
        ///   If not found, it creates a new namespace on Azure.
        /// </summary>
        ///
        /// <returns>The active Event Hubs namespace for this test run.</returns>
        ///
        private static EventHubScope.NamespaceProperties CreateNamespaceIfMissing()
        {
            if (!string.IsNullOrEmpty(EventHubsNamespaceConnectionString.Value))
            {
                return(EventHubScope.PopulateNamespacePropertiesFromConnectionString(EventHubsNamespaceConnectionString.Value));
            }

            return(CreateNamespace());
        }