public void VerifyGroupMemberPersonalInfo(XAuthPersonalInfo personalInfo, int regIndex)
 {
     List<string> personalInfos = new List<string>();
     personalInfos.Add(Convert.ToString(GetConfirmationPageValueForGroupMembers(ConfirmationPageField.RegistrantBasicInfo, regIndex)));
     personalInfos.Add(Convert.ToString(GetConfirmationPageValueForGroupMembers(ConfirmationPageField.WorkPhone, regIndex)));
     personalInfos.Add(Convert.ToString(GetConfirmationPageValueForGroupMembers(ConfirmationPageField.Fax, regIndex)));
     personalInfos.Add(Convert.ToString(GetConfirmationPageValueForGroupMembers(ConfirmationPageField.Email, regIndex)));
     VerifyTool.VerifyList(personalInfo.ToPersonalInfoSectionList(), personalInfos);
 }
 public void VerifyPrimaryRegistrationPersonalInfo(XAuthPersonalInfo personalInfo)
 {
     List<string> personalInfos = new List<string>();
     personalInfos.Add(Convert.ToString(GetConfirmationPageValueForPrimaryAttendee(ConfirmationPageField.RegistrantBasicInfo)));
     personalInfos.Add(Convert.ToString(GetConfirmationPageValueForPrimaryAttendee(ConfirmationPageField.WorkPhone)));
     personalInfos.Add(Convert.ToString(GetConfirmationPageValueForPrimaryAttendee(ConfirmationPageField.Fax)));
     personalInfos.Add(Convert.ToString(GetConfirmationPageValueForPrimaryAttendee(ConfirmationPageField.Email)));
     VerifyTool.VerifyList(personalInfo.ToPersonalInfoSectionList(), personalInfos);
 }
        public void XAuth_VerifyPINotEqual(XAuthPersonalInfo PI)
        {
            string locator_XPath_FirstNameSpan = string.Format(LocatorFormat_XPath_PIfield, "First Name:");
            string locator_XPath_MiddleName = string.Format(LocatorFormat_XPath_PIfield, "Middle Name:");
            string locator_XPath_LastName = string.Format(LocatorFormat_XPath_PIfield, "Last Name:");

            if (!UIUtil.DefaultProvider.IsElementPresent(locator_XPath_FirstNameSpan, LocateBy.XPath))
                Assert.AreNotEqual(PI.FirstName, UIUtil.DefaultProvider.GetValue("ctl00_cph_personalInfoStandardFields_rptFields_ctl06_sf_txtResponse", LocateBy.Id));
            else
                Assert.AreNotEqual(PI.FirstName, UIUtil.DefaultProvider.GetText(locator_XPath_FirstNameSpan, LocateBy.XPath).Trim());

            if (!UIUtil.DefaultProvider.IsElementPresent(locator_XPath_MiddleName, LocateBy.XPath))
                Assert.AreNotEqual(PI.MiddleName, UIUtil.DefaultProvider.GetValue("ctl00_cph_personalInfoStandardFields_rptFields_ctl07_sf_txtResponse", LocateBy.Id));
            else
                Assert.AreNotEqual(PI.MiddleName, UIUtil.DefaultProvider.GetText(locator_XPath_MiddleName, LocateBy.XPath).Trim());

            if (!UIUtil.DefaultProvider.IsElementPresent(locator_XPath_LastName, LocateBy.XPath))
                Assert.AreNotEqual(PI.LastName, UIUtil.DefaultProvider.GetValue("ctl00_cph_personalInfoStandardFields_rptFields_ctl08_sf_txtResponse", LocateBy.Id));
            else
                Assert.AreNotEqual(PI.LastName, UIUtil.DefaultProvider.GetText(locator_XPath_LastName, LocateBy.XPath).Trim());

            Assert.AreNotEqual(PI.Address1, UIUtil.DefaultProvider.GetValue("ctl00_cph_personalInfoStandardFields_rptFields_ctl14_sf_txtResponse", LocateBy.Id));
            Assert.AreNotEqual(PI.Address2, UIUtil.DefaultProvider.GetValue("ctl00_cph_personalInfoStandardFields_rptFields_ctl15_sf_txtResponse", LocateBy.Id));
            Assert.AreNotEqual(PI.City, UIUtil.DefaultProvider.GetValue("ctl00_cph_personalInfoStandardFields_rptFields_ctl16_sf_txtResponse", LocateBy.Id));
            Assert.AreNotEqual(PI.Company, UIUtil.DefaultProvider.GetValue("ctl00_cph_personalInfoStandardFields_rptFields_ctl12_sf_txtResponse", LocateBy.Id));
            Assert.AreNotEqual(PI.Extension, UIUtil.DefaultProvider.GetValue("ctl00_cph_personalInfoStandardFields_rptFields_ctl22_sf_txtResponse", LocateBy.Id));
            Assert.AreNotEqual(PI.Fax, UIUtil.DefaultProvider.GetValue("ctl00_cph_personalInfoStandardFields_rptFields_ctl23_sf_txtResponse", LocateBy.Id));
            Assert.AreNotEqual(PI.JobTitle, UIUtil.DefaultProvider.GetValue("ctl00_cph_personalInfoStandardFields_rptFields_ctl10_sf_txtResponse", LocateBy.Id));
            Assert.AreNotEqual(PI.Phone, UIUtil.DefaultProvider.GetValue("ctl00_cph_personalInfoStandardFields_rptFields_ctl21_sf_txtResponse", LocateBy.Id));
            Assert.AreNotEqual(PI.State, UIUtil.DefaultProvider.GetSelectedLabel("ctl00_cph_personalInfoStandardFields_rptFields_ctl17_sf_ddlResponse", LocateBy.Id));
            Assert.AreNotEqual(PI.Zip, UIUtil.DefaultProvider.GetValue("ctl00_cph_personalInfoStandardFields_rptFields_ctl19_sf_txtResponse", LocateBy.Id));
        }