public static void ResetManagers()
 {
     ManagerSiteMgr = new ManagerSiteManager();
     BuilderMgr = new FormDetailManager();
     BackendMgr = new BackendManager();
     RegisterMgr = new RegisterManager();
     ReportMgr = new ReportManager();
     EmailMgr = new EmailManager();
     DataHelperTool = new DataHelper();
 }
        private void OpenEmailUrlAndVerify(EmailManager.ConfirmationEmailBody body)
        {
            EmailMgr.OpenConfirmationEmailUrl(body.Category, this.eventId, this.registrationId);
            EmailMgr.VerifyConfirmationEmailBodyText(body);

            if (body.Category == EmailManager.EmailCategory.Complete || body.Category == EmailManager.EmailCategory.Update)
            {
                EmailMgr.ClickReviewChangeUpdateLinkInConfirmationEmail();
                RegisterMgr.VerifyOnConfirmationPage();

                VerifyTool.VerifyValue(
                this.registrationId,
                RegisterMgr.GetRegistrationIdOnConfirmationPage(),
                "RegistrationId in confirmation email: {0}");
            }
            else if (body.Category == EmailManager.EmailCategory.Incomplete)
            {
                EmailMgr.ClickClickHereLinkInIncompleteConfirmationEmail();
                RegisterMgr.VerifyOnCheckinPage(true);
            }
        }
 private void EditEmail(EmailManager.EmailCategory category, string appendedEmailBodyText)
 {
     BuilderMgr.OpenEditConfirmationEmail(category);
     BuilderMgr.SwitchModeInEmail(Managers.Builder.FormDetailManager.Mode.Html);
     EmailMgr.ModifyEmailHtmlContent(category, appendedEmailBodyText);
     BuilderMgr.SelectEmailEditFrame();
     BuilderMgr.SaveAndCloseEditEmail();
 }
 private void LoginAndEditEmail(EmailManager.EmailCategory category, string appendedEmailBodyText)
 {
     ManagerSiteMgr.OpenLogin();
     this.eventSessionId = ManagerSiteMgr.Login();
     ManagerSiteMgr.SelectFolder();
     ManagerSiteMgr.OpenEventBuilderStartPage(this.eventId, this.eventSessionId);
     BuilderMgr.GotoTab(Managers.Builder.FormDetailManager.Tab.Emails);
     this.EditEmail(category, appendedEmailBodyText);
     BuilderMgr.SaveAndClose();
 }
        private void AddEvent(string eventName, EmailManager.EmailCategory category)
        {
            ManagerSiteMgr.OpenLogin();
            ManagerSiteMgr.Login();
            ManagerSiteMgr.SelectFolder();
            ManagerSiteMgr.DeleteEventByName(eventName);
            ManagerSiteMgr.ClickAddEvent(Managers.Manager.ManagerSiteManager.EventType.ProEvent);
            this.eventId = BuilderMgr.GetEventId();
            BuilderMgr.SetStartPage(Managers.Manager.ManagerSiteManager.EventType.ProEvent, eventName);
            BuilderMgr.SetStartEndDateTimeDefault();
            BuilderMgr.GotoTab(Managers.Builder.FormDetailManager.Tab.Emails);

            if (category == EmailManager.EmailCategory.Incomplete)
            {
                BuilderMgr.SetWhetherToSendIncompleteNotificationEmail(true);
            }

            this.EditEmail(category, null);
            BuilderMgr.SaveAndClose();
        }