private void CreateNewEvent(string eventName, RegisterWithSameEmailSetting setting)
        {
            ManagerSiteMgr.OpenLogin();

            // login to regression testing account
            ManagerSiteMgr.Login();

            // make sure we're on the Events tab
            ManagerSiteMgr.GoToEventsTabIfNeeded();

            // click "Regression" folder
            ManagerSiteMgr.SelectFolder();

            // delete the event
            ManagerSiteMgr.DeleteEventByName(eventName);

            // select "Pro Event" from drop down
            ManagerSiteMgr.ClickAddEvent(ManagerSiteManager.EventType.ProEvent);

            // test start page
            CreateEventStartPage(eventName, setting);

            BuilderMgr.GotoPage(FormDetailManager.Page.Agenda);

            // test agenda page
            CreateEventAgendaPage("Test-AI", 10);

            // go to next page
            BuilderMgr.Next();

            // go to next page
            BuilderMgr.Next();

            // test merchandise page
            CreateEventMerchandisePage("TestMerchandise", 20);

            // go to next page
            BuilderMgr.Next();

            // test checkout page
            CreateEventCheckoutPage();

            // go to next page
            BuilderMgr.Next();

            // test confirmation page
            CreateEventConfirmationPage();

            // get event id
            eventID = BuilderMgr.GetEventId();

            //get sessionId
            sessionId = BuilderMgr.GetEventSessionId();

            // save and close
            BuilderMgr.SaveAndClose();
        }
        private void SecondRegistrationWithSameEmail(RegisterWithSameEmailSetting eventDupsetting)
        {
            InitializeRegistration();

            // Check in
            RegisterMgr.Checkin(this.registrationEmail);

            if (eventDupsetting == RegisterWithSameEmailSetting.Unallowed)
            {
                RegisterMgr.ContinueWithErrors();
                RegisterMgr.VerifyErrorMessage(Managers.Register.RegisterManager.Error.CheckinDisallowDuplicateEmail);

                // Check in using another email
                RegisterMgr.Checkin();
                RegisterMgr.Continue();
            }
            else if (eventDupsetting == RegisterWithSameEmailSetting.Allowed)
            {
                RegisterMgr.Continue();

                // Begin a New Registration with This Email
                RegisterMgr.OnPasswordDupEmailPage();
                RegisterMgr.ClickPasswordBeginNewReg();
            }

            FinishRemainingRegistration();
        }
        private void CreateEventStartPage(string eventName, RegisterWithSameEmailSetting setting)
        {
            // Verify initial defaults
            BuilderMgr.VerifyStartPageInitialDefaults(ManagerSiteManager.EventType.ProEvent);

            // Enter event start page info
            BuilderMgr.SetStartPage(ManagerSiteManager.EventType.ProEvent, eventName);

            if (setting == RegisterWithSameEmailSetting.Unallowed)
            {
                BuilderMgr.ClickStartPageEventAdvancedSettings();
                BuilderMgr.AdvancedSettingsMgr.SetFieldValue(Managers.Builder.EventAdvancedSettingsManager.AuthenticationField.NoDupEmails, true.ToString());
                BuilderMgr.AdvancedSettingsMgr.ClickSaveAndClose();
            }

            // Save and stay
            BuilderMgr.SaveAndStay();
        }