public void SubmitTheContactUsFormWith(EndUserContactDetails endUserContactDetails) { EnterTheValueInTextField("your-name", endUserContactDetails.Name); EnterTheValueInTextField("YourCompany", endUserContactDetails.Company); EnterTheValueInTextField("YourLocation", endUserContactDetails.Location); EnterTheValueInTextField("Telephone", endUserContactDetails.Telephone); EnterTheValueInTextField("your-email", endUserContactDetails.Email); EnterTheValueInTextField("your-subject", endUserContactDetails.Subject); EnterTheValueInTextField("your-message", endUserContactDetails.YourMessage); ClickSubmit(); }
public void WhenISubmitTheContactFormWithTheFollowingDetailsBelow(Table table) { var endUserContactDetails = new EndUserContactDetails { Name = table.Rows[0][0], Company = table.Rows[0][1], Location = table.Rows[0][2], Telephone = table.Rows[0][3], Email = table.Rows[0][4], Subject = table.Rows[0][5], YourMessage = table.Rows[0][6], }; contactUsPage.SubmitTheContactUsFormWith(endUserContactDetails); }