public void Can_Register_User()
        {
            RegisterPage registerPage = new RegisterPage(this._driver)
            .Navigate()
            .EnterUsername(string.Format("testuser{0}", DateTime.Now.Ticks))
            .EnterPassword("P@ssw0rd")
            .EnterConfirmPassword("P@ssw0rd");

            HomePage homePage = registerPage.Submit();

            Assert.IsNotNull(homePage);
            Assert.IsTrue(homePage.LoggedIn);
        }
        public void Cannot_Register_User_With_Empty_Username()
        {
            RegisterPage registerPage = new RegisterPage(this._driver)
                                        .Navigate()
                                        .EnterUsername(string.Empty)
                                        .EnterPassword("P@ssw0rd")
                                        .EnterConfirmPassword("P@ssw0rd");

            HomePage homePage = registerPage.Submit();

            Assert.IsNull(homePage);
            Assert.AreEqual("The User name field is required.", registerPage.ErrorMessage);
        }
        public void Cannot_Register_User_With_Empty_Username()
        {
            RegisterPage registerPage = new RegisterPage(this._driver)
            .Navigate()
            .EnterUsername(string.Empty)
            .EnterPassword("P@ssw0rd")
            .EnterConfirmPassword("P@ssw0rd");

            HomePage homePage = registerPage.Submit();

            Assert.IsNull(homePage);
            Assert.AreEqual("The User name field is required.", registerPage.ErrorMessage);
        }
        public void Can_Register_User()
        {
            RegisterPage registerPage = new RegisterPage(this._driver)
                                        .Navigate()
                                        .EnterUsername(string.Format("testuser{0}", DateTime.Now.Ticks))
                                        .EnterPassword("P@ssw0rd")
                                        .EnterConfirmPassword("P@ssw0rd");

            HomePage homePage = registerPage.Submit();

            Assert.IsNotNull(homePage);
            Assert.IsTrue(homePage.LoggedIn);
        }