public void GivenIHaveAddedValidDataToAllSectionsOfTheProcessAForm() { FormF01Page = new FormF01Page(driver); FormA01Page = new FormA01Page(driver); var retailerDetails = new Retailer.RetailDetails("ret", "id", "reference", "contact name", "0242420420", "*****@*****.**"); var developmentDetails = new DevelopmentDetails("School", "", "500", "1000", "200000", DateTime.Now.ToString(), "previous reference value", "this is sitename", "Site addres", "orsurveyRef", "location", "TR10 8JD", "development name", "contact", "07818192929", "*****@*****.**"); var planningInformation = new PlanningInformation("localAuthority", "Yes", "No", "Yes", "", "planRef"); var siteServingDetails = new SiteServicing("Greenfield", "dump", DateTime.Now.ToString()); var waterDetails = new WaterDetails("1000", "300", "2000", "400", "10"); var sewerageDetails = new SewerageDetails("Totally separate Foul Sewage and Surface Water", "", "350", "400", "Combined", "30", "80", "100"); var surfaceWaterDrainage = new SurfaceWaterDrainage("100", "Rain water harvesting", "", "", "", "200", "300", "Soak-away", "", "", "", "", "processa1.txt"); var surfaceWaterDesign = new SurfaceWaterDesign("All", ""); var tradeEffluent = new TradeEffluent("No", "", "", "", "", ""); var declaration = new Retailer.Declaration("locationPlan", "drawings", "calculations", "supportingDocs", "", DateTime.Now.ToString(), "", "arrrghghg"); FormF01Page.AddRetailerDetails(retailerDetails); FormA01Page.AddDevelopmentDetails(developmentDetails); FormA01Page.AddPlanningInformationDetails(planningInformation); FormA01Page.AddSiteServicingDetails(siteServingDetails); FormA01Page.AddWaterDetails(waterDetails); FormA01Page.AddSewerageDetails(sewerageDetails); FormA01Page.AddSurfaceWaterDrainage(surfaceWaterDrainage); FormA01Page.AddSurfaceWaterDesign(surfaceWaterDesign); FormA01Page.AddTradeEffluent(tradeEffluent); FormA01Page.AddDeclaration(declaration); }
public void AddDeclaration(Retailer.Declaration declaration) { ClearAndSendKeys(_txtSignature, declaration.Signature); ClearAndSendKeys(_dateInput, DateTime.Now.ToString()); ClearAndSendKeys(_txtFullName, declaration.FullName); ClearAndSendKeys(_txtRole, declaration.RoleInTheCompany); }
public void AddDeclaration(Retailer.Declaration declaration) { if (declaration.LocationPlan == string.Empty && declaration.Drawings == string.Empty && declaration.Calculations == string.Empty) { var formF01Page = new FormF01Page(Driver); formF01Page.AddDeclaration(declaration); } else { if (declaration.LocationPlan != string.Empty) { _chklocationplan.Click(); UploadDocument(declaration.LocationPlan, _fuplocationplanfilefile0); } if (declaration.Drawings != string.Empty) { _chkdrawings.Click(); UploadDocument(declaration.Drawings, _fupdrawingsfilefile0); } if (declaration.Calculations != string.Empty) { _chkcalculations.Click(); UploadDocument(declaration.Calculations, _fupcalculationfilefile0); } } ClearAndSendKeys(_txtrole, declaration.RoleInTheCompany); }
public void GivenIHaveAddedValidDataToAllSectionsOfTheProcessBForm() { var FormF01Page = new FormF01Page(driver); var FormB01Page = new FormB01Page(driver); var retailerDetails = new Retailer.RetailDetails("ret", "id", "reference", "contact name", "0242420420", "*****@*****.**"); var eligiblePremiseDetails = new Retailer.EligiblePremiseDetails("1000000019S21", "uprn", "boaref", "23", "name", "add1", "add2", "add3", "town", "ba12 6jh", "banner", true, "", "", false); var declaration = new Retailer.Declaration("signature", DateTime.Now.ToString(), "", "arrrghghg"); FormF01Page.AddRetailerDetails(retailerDetails); FormB01Page.AddEligiblePremiseDetails(eligiblePremiseDetails); FormF01Page.AddDeclaration(declaration); }
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); }