Exemplo n.º 1
0
        public void Test_DelFavClass_GetCommandMethod_Returns_A_bool()
        {
            int job_id = 1;
            DbUser user = new DbUser();
            user.UserId = 1;
            List<DbUser> userList = new List<DbUser>();
            userList.Add(user);

            DelFav fav = new DelFav();
            bool result =  fav.GetCommand(userList, job_id);
            Assert.IsInstanceOf(typeof(bool), result);
        }
Exemplo n.º 2
0
        public void Test_DelFavClass_GetCommandMethod_Returns_True_When_JobId_Exists()
        {
            int job_id = 1;
            DbUser user = new DbUser();
            user.UserId = 1;
            List<DbUser> userList = new List<DbUser>();
            userList.Add(user);

            DelFav fav = new DelFav();
            bool result = fav.GetCommand(userList, job_id);
            Assert.IsTrue(result);
        }
Exemplo n.º 3
0
        public void Test_DelFavClass_GetCommandMethod_Returns_True_When_JobId_Exists()
        {
            int    job_id = 1;
            DbUser user   = new DbUser();

            user.UserId = 1;
            List <DbUser> userList = new List <DbUser>();

            userList.Add(user);

            DelFav fav    = new DelFav();
            bool   result = fav.GetCommand(userList, job_id);

            Assert.IsTrue(result);
        }
Exemplo n.º 4
0
        public void Test_DelFavClass_GetCommandMethod_Returns_A_bool()
        {
            int    job_id = 1;
            DbUser user   = new DbUser();

            user.UserId = 1;
            List <DbUser> userList = new List <DbUser>();

            userList.Add(user);

            DelFav fav    = new DelFav();
            bool   result = fav.GetCommand(userList, job_id);

            Assert.IsInstanceOf(typeof(bool), result);
        }
Exemplo n.º 5
0
 public bool DeleteFavourite(List<DbUser> obj, int job_id)
 {
     DelFav delFav = new DelFav();
     return delFav.GetCommand(obj, job_id);
 }