public void DeleteTimesheetTest() { var repo = new TimeTrackerRepository(); repo.DeleteTimesheet(1); List<Timesheet> listOfSheets = repo.GetAllTimeSheets(1); Assert.IsFalse(listOfSheets.Exists(p => p.TimesheetId == 1)); }
public void DeleteSingleTimesheet(int timesheetId) { TimeTrackerRepository repo = new TimeTrackerRepository(); repo.DeleteTimesheet(timesheetId); }