Ejemplo n.º 1
0
 public void TimesheetOperationsTest()
 {
     TimeTrackerOperations ops = new TimeTrackerOperations();
       var response = ops.GetTimeTrackerSummary(6);
     Assert.IsTrue(response.Success);
     Assert.AreEqual(4, response.Data.AllTimesheets.Count);
     Assert.AreEqual(22, response.Data.TotalHoursWorked);
 }
Ejemplo n.º 2
0
        public ActionResult TimeTrackerSummary(int empId)
        {
            TimeTrackerOperations ops = new TimeTrackerOperations();
            Response<TimeTrackerSummary> response = new Response<TimeTrackerSummary>();
            response = ops.GetTimeTrackerSummary(empId);

            return View(response);
        }
Ejemplo n.º 3
0
        public ActionResult TimeTrackerSummary(int empId)
        {
            TimeTrackerOperations ops = new TimeTrackerOperations();
            Response<TimeTrackerSummary> response = new Response<TimeTrackerSummary>();
            response = ops.GetTimeTrackerSummary(empId);
            var ptoOps = OperationsFactory.CreatePaidTimeOffOperations();
            var empsPtoRequests = ptoOps.ViewPtoRequestsForEmp(empId);
            ViewBag.empPtoList = empsPtoRequests.Data;

            return View(response);
        }