Example #1
0
        public void ActivityDaoDeleteWorking()
        {
            var activity  = new ActivityDAO();
            var activity1 = new Activity
            {
                Date        = new DateTime(2019, 01, 20),
                ActivityVal = "Work",
                Reward      = "Candy"
            };

            activity.DeleteActivity(activity1);
            ReferenceEquals(1, activity.GetAll().Count);
        }
Example #2
0
        public void DeleteActivity(string activityId)
        {
            int id = int.Parse(activityId);

            activityDAO.DeleteActivity(id);
        }
Example #3
0
        public int DeleteOne(int id)
        {
            ActivityDAO dao = new ActivityDAO();

            return(dao.DeleteActivity(id));
        }