public void EF_2_v_1()
        {
            string coursename = "C# Starter";
            string newname    = "C# Essential";

            driver = DriversFabric.Init("Chrome");
            driver.GoToUrl("http://localhost:55842/CourseManagement");

            var course = new DAL();

            course.AddCourseByEF(coursename, "tratata", "6d377a43-7c36-4f6c-8555-b88d4f0043dc");

            driver.refresh();
            var Course     = new Courses_POM(driver);
            var textresult = Course.GetCourseName1();

            Assert.AreEqual(coursename, textresult);

            course.ChangeCourseByEF(coursename, newname);

            driver.refresh();
            Course     = new Courses_POM(driver);
            textresult = Course.GetCourseName2();
            Assert.AreEqual(newname, textresult);
        }
        public void LoginTest()
        {
            driver = DriversFabric.Init("Chrome");
            driver.GoToUrl("http://51.144.34.125/");
            var header = new Header_POM(driver);

            header.SignInClick();
            var loginPage = new LoginPage(driver);

            loginPage.Login(Student_email, Student_password);
            var loginned = new Loginned(driver);
            var result   = loginned.SignUpField();

            driver.Dispose();

            StringAssert.Contains(Student_email, result.ToLowerInvariant());
        }
        public void EF_add_test()
        {
            string coursename = "C# Starter";
            var    course     = new DAL();

            course.AddCourseByEF(coursename, "tratata", "6d377a43-7c36-4f6c-8555-b88d4f0043dc");
            var result = course.IsCoursePresentedByDesc("tratata");

            Assert.True(result);

            driver = DriversFabric.Init("Chrome");
            driver.GoToUrl("http://localhost:55842/CourseManagement");
            var Course     = new Courses_POM(driver);
            var textresult = Course.GetCourseName1();

            driver.Dispose();
            Assert.AreEqual(coursename, textresult);
        }
        public void EF_Change_Test()
        {
            string coursename = "C# Starter";
            string newname    = "C# Essential";
            var    course     = new DAL();

            course.ChangeCourseByEF(coursename, newname);
            var result = course.IsCoursePresentedByName(newname);

            Assert.True(result);

            driver = DriversFabric.Init("Chrome");
            driver.GoToUrl("http://localhost:55842/CourseManagement");
            var Course     = new Courses_POM(driver);
            var textresult = Course.GetCourseName2();

            driver.Dispose();
            Assert.AreEqual(newname, textresult);
        }
        public void LogOutTest()
        {
            driver = DriversFabric.Init("chrome");
            driver.GoToUrl("http://51.144.34.125/");
            var header = new Header_POM(driver);

            header.SignInClick();
            var loginPage = new LoginPage(driver);

            loginPage.Login(Student_email, Student_password);
            var loginned = new Loginned(driver);

            loginned.ClickOnLogOutButton();
            var NewHeader = new Header_POM(driver);
            var result    = NewHeader.GetSignUpText();

            driver.Dispose();

            StringAssert.Contains("SIGN UP", result);
        }