public static void TestSkills() { Skills objSkills = new Skills(); objSkills.AddSkills(); objSkills.EditSkills(); objSkills.DeleteSkills(); }
public void AddSkillsTest() { LoginPage loginPage = new LoginPage(); HomePage homeObj = loginPage.performUserLogin("*****@*****.**", "Kiran123abc"); ProfilePage profile = homeObj.NavigateToProfilePage(); Skills Skills = profile.selectSkillsTab(); Skills.AddSkills(); verifytSuccessMessage("Cloud has been added to your skills"); }
protected void BtnAddSkillToDatabase_Click(object sender, EventArgs e) { if (this.IsValid == true) { if (Skills.GetSkillsRecords("SkillName='" + TxtSkillNameInAddSkill.Text + "' and SkillTypeId=" + DdlSkillTypeInAddSkill.SelectedValue).Rows.Count > 0) { LblDuplicateSkillName.Visible = true; return; } Skills.AddSkills(int.Parse(DdlSkillTypeInAddSkill.SelectedValue), TxtSkillNameInAddSkill.Text, "Active"); FillSkills(); AddSkillModal.Visible = false; if (DdlSkillType.SelectedIndex != 0) { FillSkills(); } DdlSkillType.Focus(); this.Form.DefaultButton = BtnAddSkills.UniqueID; } }
public void WhenITryToAddSkillDetails() { Skills objskill = new Skills(); objskill.AddSkills(); }