public override void AddService()
 {
     base.AddService();
     education.AddEducation(this);
     education.addLocalEducation += DoEffect;
     education.servicePayment    += PayForService;
 }
Exemplo n.º 2
0
        public void WhenUserClickOnAddEducationButton()
        {
            //Add Education
            Education eduobj = new Education();

            eduobj.AddEducation();
        }
Exemplo n.º 3
0
            public void EducationPage()
            {
                test = extent.StartTest("Education test started");
                Education education = new Education();

                education.AddEducation();
                education.UpdateEducation();
                education.DeleteEducation();
            }
Exemplo n.º 4
0
        public void AddEducationTest()
        {
            LoginPage   loginPage = new LoginPage();
            HomePage    homeObj   = loginPage.performUserLogin("*****@*****.**", "Kiran123abc");
            ProfilePage profile   = homeObj.NavigateToProfilePage();
            Education   Education = profile.selectEducationTab();

            Education.AddEducation();
            verifytSuccessMessage("Education has been added");
        }
Exemplo n.º 5
0
        public void ProfileEdu()
        {
            //Create Extent Report
            test = extent.CreateTest("Education");
            test.Log(Status.Info, "Education");
            // taking Screenshots of adding education
            SaveScreenShotClass.SaveScreenshot(driver, "Education");

            // create object for add Education
            Education obj = new Education(driver);

            obj.AddEducation();
            obj.UpdateEducation();
            obj.DeleteEdu();
        }
Exemplo n.º 6
0
        private void btnAddEducation_Click(object sender, EventArgs e)
        {
            DateTime dateFrom = dtpFrom.Value;
            DateTime dateTo   = dtpTo.Value;

            tbInstitution.ForeColor = Color.Black;
            tbSpecialty.ForeColor   = Color.Black;
            bool mistake = false;

            if (tbInstitution.CheckField(20, @"^[a-zA-Z0-9 ]+$"))
            {
                mistake = true;
            }
            if (tbSpecialty.CheckField(20, @"^[a-zA-Z0-9 ]+$"))
            {
                mistake = true;
            }
            if (dateFrom.ToShortDateString() == dateTo.ToShortDateString())
            {
                MessageBox.Show("Start and end dates should be different of the date should be different");
                mistake = true;
            }


            if (mistake)
            {
                return;
            }

            string report = Education.AddEducation(myUserProfile, tbSpecialty.Text, tbInstitution.Text, dateFrom, dateTo, _educationForEdite);

            if (report != "OK")
            {
                MessageBox.Show(report);
            }
            else
            {
                MessageBox.Show("Work is done!");
                tbInstitution.Clear();
                tbSpecialty.Clear();
                dtpFrom.Value             = DateTime.Now;
                dtpTo.Value               = DateTime.Now;
                btnAddEducation.Text      = "Add Education";
                btnAddEducation.ForeColor = Color.Blue;
                _educationForEdite        = -1;
                ReadEducationce();
            }
        }
Exemplo n.º 7
0
        public ActionResult AddEducation(Education edu)
        {
            if (Session["EmpID"] != null)
            {
                if (ModelState.IsValid)
                {
                    edu.EmployeeID = Convert.ToInt32(Session["EmpId"]);
                    edu.AddEducation();
                }
                else
                {
                    edu.EmployeeID = Convert.ToInt32(Session["EmpId"]);
                    ViewBag.List   = edu.GetDegrees();
                    System.Data.DataSet x = edu.GetEducation();
                    return(View("Index", x));
                }

                return(RedirectToAction("Index"));
            }
            else
            {
                return(RedirectToAction("Index", "LogIn"));
            }
        }