Exemplo n.º 1
0
 public void TestGetCommandMethodReturnsTrueWhenDeletingUserSkillFromDatabase()
 {
     string skill = "SQL";
     int userID = 3;
     DeleteUserSkill del = new DeleteUserSkill();
     bool result = del.GetCommand(skill, userID);
     Assert.IsTrue(result);
 }
Exemplo n.º 2
0
        public bool RemoveUserSkill(string skill, int userID)
        {
            DeleteUserSkill del = new DeleteUserSkill();

            //for (int i = 0; i < skill.Count; i++)
            //{
            if (del.GetCommand(skill, userID))
            {
                return(true);
            }
            //}
            else
            {
                return(false);
            }
        }
Exemplo n.º 3
0
 public bool RemoveUserSkill(string skill, int userID)
 {
     DeleteUserSkill del = new DeleteUserSkill();
     //for (int i = 0; i < skill.Count; i++)
     //{
     if (del.GetCommand(skill, userID))
     {
         return true;
     }
     //}
     else
     {
         return false;
     }
 }