public void TestGetCommandMethodReturnsTrueWhenAddingUserSkillToDatabase() { string skill = "SQL"; int userID = 3; InsertUserSkill ins = new InsertUserSkill(); bool result = ins.GetCommand(skill, userID); Assert.IsTrue(result); }
public bool AddUserSkill(string skill, int userID) { InsertUserSkill ins = new InsertUserSkill(); //for (int i = 0; i < skill.Count; i++) //{ if (ins.GetCommand(skill, userID)) { return true; } //} else { return false; } }
public bool AddUserSkill(string skill, int userID) { InsertUserSkill ins = new InsertUserSkill(); //for (int i = 0; i < skill.Count; i++) //{ if (ins.GetCommand(skill, userID)) { return(true); } //} else { return(false); } }