/// <summary>
        /// Create using dynamic runtime values.
        /// </summary>
        /// <param name="userCount">This is the number of users.</param>
        /// <param name="userTypeEnum">This is the type of user.</param>
        /// <param name="mode">This is the mode of user creation.</param>
        /// <param name="smsUser">This is the user performing the operation.</param>
        /// <param name="excelReadAndWrite">This the excel spreadsheet instance.</param>
        private void CreateBulkUserUsingRunTimeValues(int userCount, User.UserTypeEnum userTypeEnum, string mode, User.UserTypeEnum smsUser, ExcelReadWrite excelReadAndWrite)
        {
            // Create using dynamic runtime values
            Logger.LogMethodEntry("Reg1Page", "CreateBulkUserUsingRunTimeValues",
                                  base.IsTakeScreenShotDuringEntryExit);
            try
            {
                for (int i = 1; i <= userCount; i++)
                {
                    //URL launch step starting from second user
                    //For first user action is handled by Backgroung step
                    if (i > 1)
                    {
                        LaunchSMSRegistrationPage(smsUser);
                    }
                    //Click Accept Button By SMSAdmin
                    new ConsentPage().ClickIAcceptButtonBySMSAdmin();
                    //Fill SMS User Access Information
                    this.EnterSmsUserAccessInformation(userTypeEnum, mode);
                    //Fill SMS User Account Information for Registeration
                    new Reg2Page().EnterSmsUserAccountOtherInformation(userTypeEnum, mode);
                    //Get the values stored in enum during runtime
                    User user = User.Get(userTypeEnum);
                    //Assign the values picked from enum into an array
                    string[] rowValues = new string[5] {
                        i.ToString(), user.Name, user.Password, user.FirstName, user.LastName
                    };
                    //Write the value into excel sheet
                    excelReadAndWrite.AddRowData(i, 5, rowValues);
                    //Verify Confirmation page
                    string confirmationPageTitle = new ConsentPage().GetPageTitle;

                    if (confirmationPageTitle == "Confirmation and Summary")
                    {
                        continue;
                    }
                }
            }
            catch (Exception e)
            {
                ExceptionHandler.HandleException(e);
            }
            Logger.LogMethodExit("Reg1Page", "CreateBulkUserUsingRunTimeValues",
                                 base.IsTakeScreenShotDuringEntryExit);
        }
        /// <summary>
        /// Create using static excel values.
        /// </summary>
        /// <param name="userCount">This is the number of users.</param>
        /// <param name="userTypeEnum">This is type of user.</param>
        /// <param name="mode">This is the mode of user creation.</param>
        /// <param name="smsUser">This is the user performing the operation.</param>
        /// <param name="excelRead">This the excel spreadsheet instance.</param>
        /// <param name="reg2">this is class  Reg2Page instance. </param>
        private void CreateBulkUserUsingExcelValues(int userCount, User.UserTypeEnum userTypeEnum,
                                                    string mode, User.UserTypeEnum smsUser, ExcelReadWrite excelRead, Reg2Page reg2)
        {
            // Create using static excel values
            Logger.LogMethodEntry("Reg1Page", "CreateBulkUserUsingExcelValues",
                                  base.IsTakeScreenShotDuringEntryExit);
            //For eachuser perform below action
            try
            {
                for (int i = 1; i <= userCount; i++)
                {
                    //URL launch step starting from second user
                    //For first user action is handled by Backgroung step
                    if (i > 1)
                    {
                        LaunchSMSRegistrationPage(smsUser);
                    }
                    //Click I Accept Button
                    new ConsentPage().ClickIAcceptButtonBySMSAdmin();
                    string[] a = new string[12];
                    a = excelRead.ReadExcelCellDataValues(i, 12);
                    //Select Sms User Account Number
                    this.SelectSmsUserAccountNumber();
                    // Enter the SMS User Details and Get Password
                    //Pass  userName , password , accessCode from excel
                    EnterUserCreationDetails(userTypeEnum, a[1], a[2], a[3], mode);
                    //Pass userFirstName ,getUserLastName ,mailId ,country,school,schoolCity ,securityQuestion,securityAnswer
                    reg2.EnterUserOtherDetails(a[4], a[5], a[6], a[7], a[8], a[9], a[10], a[11]);
                    //Verify Confirmation page
                    string confirmationPageTitle = new ConsentPage().GetPageTitle;

                    if (confirmationPageTitle == "Confirmation and Summary")
                    {
                        continue;
                    }
                }
            }
            catch (Exception e)
            {
                ExceptionHandler.HandleException(e);
            }
            Logger.LogMethodExit("Reg1Page", "CreateBulkUserUsingExcelValues",
                                 base.IsTakeScreenShotDuringEntryExit);
        }