コード例 #1
0
        public void ThenMyAccountShouldBe(string value)
        {
            _driver.Url = test_url + "/index.php?controller=identity";
            PDPage pdPage = new PDPage(_driver);
            var    actual = pdPage.GetFirstName();

            Assert.That(value, Is.EqualTo(actual),
                        "Firstname does not match:" +
                        $"Expected: {value} but got {actual}");
        }
コード例 #2
0
        public void GivenMyAccountIs(string value)
        {
            _driver.Url = test_url + "/index.php?controller=identity";
            PDPage pdPage = new PDPage(_driver);
            var    tester = this.config.Get("Customer");

            pdPage.UpdateFirstNameOnly(value, tester[1]);
            _driver.Url = test_url + "/index.php?controller=identity";
            var actual = pdPage.GetFirstName();

            if (actual != value)
            {
                throw new Exception("Precondtion Error: Unable to set firstname default");
            }
        }