Пример #1
0
 public void SubmitNewTimeSheet()
 {
     var repo = new TimeTrackerRepository();
     var timesheet = new Timesheet()
     {
         DateOfTimesheet = new DateTime(1989, 02, 01),
         EmpId = 1,
         TotalHoursByDay = 2
     };
     repo.SubmitNewTimeSheet(timesheet);
     List<Timesheet> listOfSheets = repo.GetAllTimeSheets(1);
     Assert.AreEqual(8, listOfSheets.Count);
 }
 public void SubmitTimeSheet(Timesheet timesheet)
 {
     TimeTrackerRepository repo = new TimeTrackerRepository();
     repo.SubmitNewTimeSheet(timesheet);
 }