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 GivenInTheSiteServicingDetailsSectionIAddTheValues(Table siteServicingDetails) { var siteServicing = siteServicingDetails.CreateInstance <SiteServicing>(); FormA01Page.AddSiteServicingDetails(siteServicing); }