public void IsEditedInfomationsMatch(SettingsPageElementMap Map, EditSectionFields hcpInformations, Func <IWebElement, string, bool> performCheck)
 {
     WrapValidators(() =>
     {
         Assert.Multiple(() =>
         {
             performCheck(Map.HCPInformationByText(hcpInformations.HeighUnit), hcpInformations.HeighUnit).Should().Be(true, $"HCP Height Unit  {hcpInformations.HeighUnit} does not match ");
             performCheck(Map.HCPInformationByText(hcpInformations.WeightUnit), hcpInformations.WeightUnit).Should().Be(true, $"HCP Weight Unit  {hcpInformations.WeightUnit} does not match ");
             performCheck(Map.HCPInformationByText(hcpInformations.Language), hcpInformations.Language).Should().Be(true, $"HCP Language {hcpInformations.Language} does not match");
         });
     }, Map.HCPEditPreferenceButton);
 }
 public void IsEditedInfomationsMatch(SettingsPageElementMap Map, EditSectionFields hcpInformations, Func <IWebElement, string, bool> performCheck)
 {
     WrapValidators(() =>
     {
         Assert.Multiple(() =>
         {
             performCheck(Map.HCPFirstName(hcpInformations.FirstName), hcpInformations.FirstName).Should().Be(true, $"HCP FirstName {hcpInformations.FirstName} does not match ");
             performCheck(Map.HCPLastName(hcpInformations.LastName), hcpInformations.LastName).Should().Be(true, $"HCP LastName {hcpInformations.LastName} does not match ");
             performCheck(Map.HCPInformationByText(hcpInformations.Email), hcpInformations.Email).Should().Be(true, $"HCP Email {hcpInformations.Email} does not match");
             performCheck(Map.HCPInformationByText(hcpInformations.ConfirmationEmail), hcpInformations.ConfirmationEmail).Should().Be(true, $"HCP Confirmation Email {hcpInformations.ConfirmationEmail} does  not match");
         });
     }, Map.HCPEditProfileButton);
 }