Esempio n. 1
0
        public void GivenInTheDeclarationSectionIEnter(Table declarationTable)
        {
            FormF01Page = new FormF01Page(driver);
            var declaration = declarationTable.CreateInstance <Retailer.Declaration>();

            FormF01Page.AddDeclaration(declaration);
        }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        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);
        }