Exemplo n.º 1
0
        public void WhenIEnterAStartDateBeforeTheMayTwentyEighteen()
        {
            EditApprenticeshipsPage editApprenticeshipsPage = new EditApprenticeshipsPage(WebSite.getDriver());

            editApprenticeshipsPage.ChangeStartDateMonth("3");
            editApprenticeshipsPage.ChangeStartDateYear("2015");
            editApprenticeshipsPage.ContinueButton.Click();
        }
Exemplo n.º 2
0
        public void WhenIEnterAStartDateBeforeTheCurrentMonth()
        {
            EditApprenticeshipsPage editApprenticeshipsPage = new EditApprenticeshipsPage(WebSite.getDriver());
            string month = (DateTime.Now.Month - 1).ToString();
            string year  = (DateTime.Now.Year - 1).ToString();

            editApprenticeshipsPage.ChangeStartDateMonth(month);
            editApprenticeshipsPage.ChangeStartDateYear(year);
            editApprenticeshipsPage.ContinueButton.Click();
        }