Пример #1
0
 public void TestGetCommandMethodReturnsTrueWhenDeletingUserSkillFromDatabase()
 {
     string skill = "SQL";
     int userID = 3;
     DeleteUserSkill del = new DeleteUserSkill();
     bool result = del.GetCommand(skill, userID);
     Assert.IsTrue(result);
 }
Пример #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);
            }
        }
Пример #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;
     }
 }