public void TestGetCommandMethodReturnsTrueWhenAddingUserSkillToDatabase()
 {
     string skill = "SQL";
     int userID = 3;
     InsertUserSkill ins = new InsertUserSkill();
     bool result = ins.GetCommand(skill, userID);
     Assert.IsTrue(result);
 }
示例#2
0
 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;
     }
 }
示例#3
0
        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);
            }
        }