public void AddConsentToContactDetails(Retailer.ConsentToContact consentToContact) { var consent = new Dictionary <string, IWebElement>(); consent.Add("Yes", _radConsentYes); consent.Add("No", _radConsentNo); var notify = new Dictionary <string, IWebElement>(); notify.Add("Yes", _radNotifyYes); notify.Add("No", _radNotifyNo); consent[consentToContact.GiveConsent].Click(); _txtContactNameAtPremises.SendKeys(consentToContact.ContactName); _txtRetContactNumber.SendKeys(consentToContact.ContactNumber); notify[consentToContact.NotifiedOfVisitDate].Click(); }
public void GivenIHaveAddedValidDataToAllSectionsOfTheProcessF4Form() { var retailerDetails = new Retailer.RetailDetails("ret", "id", "reference", "contact name", "0242420420", "*****@*****.**"); var eligiblePremiseDetails = new Retailer.EligiblePremiseDetails("1000000019S21", "10", "prospect villa", "add1", "add2", "add3", "Mere", "BA12 6JH"); var detailsOfEnquiry = new Retailer.DetailsOfEnquiry("details of enquiry text"); var consentToContact = new Retailer.ConsentToContact("Yes", "contact name", "08293427487", "No"); var declaration = new Retailer.Declaration("signature", DateTime.Now.ToString(), "Garth Vader", "The Boss"); LoginPage = new LoginPage(driver); LoginPage.LoginUser(sequenceUsers.retailer); LoginPage.GetPageByLinkText("Start Process"); BusinessProcessesPage = new BusinessProcessesPage(driver); BusinessProcessesPage.CreateInstanceOfProcess("F04B NHH customer enquiries received by Retailer"); FormF01Page = new FormF01Page(driver); FormF01Page.AddRetailerDetails(retailerDetails); FormF01Page.AddEligiblePremiseDetails(eligiblePremiseDetails); FormF01Page.AddDetailsOfEnquiry(detailsOfEnquiry); FormF01Page.AddConsentToContactDetails(consentToContact); FormF01Page.AddDeclaration(declaration); }