Beispiel #1
0
        public void VerifyEmployerDetails(string employerName)
        {
            String actualContactName = FormCompletionHelper.GetValueFromField(ContactField);
            String actualEmail       = FormCompletionHelper.GetValueFromField(EmailField);
            String actualPhoneNumber = FormCompletionHelper.GetValueFromField(PhoneNumberField);

            List <Object[]> employerInfo = GetEmployerDetails(employerName);

            foreach (object[] employerdetails in employerInfo)
            {
                String expectedContactName = employerdetails[1].ToString();
                String expectedPhoneNo     = employerdetails[2].ToString();
                String expectedEmail       = employerdetails[3].ToString();

                PageInteractionHelper.VerifyText(expectedContactName, actualContactName);
                PageInteractionHelper.VerifyText(expectedEmail, actualEmail);
                PageInteractionHelper.VerifyText(expectedPhoneNo, actualPhoneNumber);

                ScenarioContext.Current["_EmployerContactName"] = actualContactName;
            }
        }