public void UpdateJobRescheduleStatus(int jobRescheduleRequestId, string statusjobStatus)
 {
     SmartDispatchBL business = new SmartDispatchBL(new SQLRespository());
     business.UpdateJobRescheduleStatus(jobRescheduleRequestId, statusjobStatus);
 }
 public List<JobRescheduleDetail> GetAllRescheduleJobs()
 {
     SmartDispatchBL business = new SmartDispatchBL(new SQLRespository());
     return business.GetAllRescheduleJobs();
 }
 public TechnicianAlert GetTechnicianAlert(int technicianId)
 {
     SmartDispatchBL business = new SmartDispatchBL(new SQLRespository());
     return business.GetTechnicianAlert(technicianId);
 }
 public void AcceptJobReschedule(int acceptedTechnicianId, int jobRescheduleRequestId)
 {
     SmartDispatchBL business = new SmartDispatchBL(new SQLRespository());
     business.AcceptJobReschedule(acceptedTechnicianId, jobRescheduleRequestId);
 }
 public void DelayRequested(int technicianId, int jobId)
 {
     SmartDispatchBL business = new SmartDispatchBL(new SQLRespository());
     business.DelayRequested(technicianId, jobId);
 }
 public void Test_UpdateJobRescheduleStatus()
 {
     ISmartDispatch dispathBL = new SmartDispatchBL(new SQLRespository());
     dispathBL.UpdateJobRescheduleStatus(1, "SWAPED");
     Assert.AreEqual(true, true);
 }
 public void Test_GetTechnicianAlert()
 {
     ISmartDispatch dispathBL = new SmartDispatchBL(new SQLRespository());
     var alert = dispathBL.GetTechnicianAlert(1);
     Assert.AreEqual(8, alert.JobId);
 }
 public void Test_GetAllRescheduleJobs()
 {
     ISmartDispatch dispathBL = new SmartDispatchBL(new SQLRespository());
     var jobs = dispathBL.GetAllRescheduleJobs();
     Assert.AreEqual(1, jobs.Count);
 }
 public void Test_DelayRequested()
 {
     ISmartDispatch dispathBL = new SmartDispatchBL(new SQLRespository());
     dispathBL.DelayRequested(1, 8);
     Assert.AreEqual(true, true);
 }
 public void Test_AcceptJobReschedule()
 {
     ISmartDispatch dispathBL = new SmartDispatchBL(new SQLRespository());
     dispathBL.AcceptJobReschedule(2, 1);
     Assert.AreEqual(true, true);
 }