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); }
public void DeleteActivity(string activityId) { int id = int.Parse(activityId); activityDAO.DeleteActivity(id); }
public int DeleteOne(int id) { ActivityDAO dao = new ActivityDAO(); return(dao.DeleteActivity(id)); }