/// <summary>
        /// Gets the connection.
        /// </summary>
        /// <param name="testContext">The test context.</param>
        /// <param name="standAlone">if set to <c>true</c> a stand alone user will be created.</param>
        /// <returns></returns>
        /// <remarks>Documented by Dev02, 2008-09-10</remarks>
        public static Dictionary GetConnection(TestContext testContext, bool standAlone)
        {
            MLifterTest.DAL.LMConnectionParameter param = new MLifterTest.DAL.LMConnectionParameter(testContext);
            param.Callback         = MLifterTest.DAL.TestInfrastructure.GetAdminUser;
            param.ConnectionType   = string.Empty;
            param.IsProtected      = false;
            param.LearningModuleId = -1;
            param.Password         = string.Empty;
            param.RepositoryName   = string.Empty;
            param.standAlone       = standAlone;

            IDictionary targetDAL = MLifterTest.DAL.TestInfrastructure.GetLMConnection(param);
            Dictionary  target    = new Dictionary(targetDAL, null);

            return(target);
        }
        /// <summary>
        /// Gets a persistent LM connection according chosen connectionType e.g. file or pgsql.
        /// </summary>
        /// <param name="testContext">The test context.</param>
        /// <param name="connectionType">Type of the connection.</param>
        /// <param name="standAlone">if set to <c>true</c> a stand alone user will be created.</param>
        /// <returns></returns>
        /// <remarks>Documented by Dev10, 2008-26-09</remarks>
        public static Dictionary GetPersistentLMConnection(TestContext testContext, string connectionType, bool standAlone)
        {
            MLifterTest.DAL.LMConnectionParameter param = new MLifterTest.DAL.LMConnectionParameter(testContext);
            param.Callback = MLifterTest.DAL.TestInfrastructure.GetAdminUser;
            param.ConnectionType = connectionType;
            param.IsProtected = false;
            param.LearningModuleId = -1;
            param.Password = string.Empty;
            param.RepositoryName = string.Empty;
            param.standAlone = standAlone;

            IDictionary targetDAL = MLifterTest.DAL.TestInfrastructure.GetLMConnection(param);
            Dictionary target = new Dictionary(targetDAL, null);
            return target;
        }