コード例 #1
0
        public void CantAddACustomerWithInvalidVatNumber()
        {
            var homePage = new HomePage(driver);
            var customersListPage = homePage.OpenCustomersPage();
            var createPage = customersListPage.OpenCreateCustomerPage();

            createPage = createPage.CreateCustomer("IBM corp.", "12345678902hhhh") as CreateCustomerPage;
            createPage.Should().Not.Be.Null();
            createPage.ContainsVatRegExValidation().Should().Be.True();

        }
コード例 #2
0
        public void CanAddACustomer()
        {
            var homePage = new HomePage(driver);
            var customersList = homePage.OpenCustomersPage();
            var createPage = customersList.OpenCreateCustomerPage();

            customersList = createPage.CreateCustomer("IBM corp.", "12345678902") as CustomerListPage;

            customersList.Should().Not.Be.Null();
            var containsCustomer = customersList.ContainsCustomerRow("IBM corp.");
            Assert.IsTrue(containsCustomer);
        }
コード例 #3
0
        public void CanAccessHomePageEnc()
        {
            var homePage = new HomePage(driver);

            homePage.HasTitleHeading();
        }
コード例 #4
0
        public void CanAccessHomePage()
        {
            var homePage = new HomePage(driver);

            Assert.AreEqual("Index", homePage.Title.Text);
        }