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

            eduobj.AddEducation();
        }
示例#3
0
            public void EducationPage()
            {
                test = extent.StartTest("Education test started");
                Education education = new Education();

                education.AddEducation();
                education.UpdateEducation();
                education.DeleteEducation();
            }
示例#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");
        }
示例#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();
        }
示例#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();
            }
        }
示例#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"));
            }
        }