public ApproveStep(Employee approver) { this.Approver = approver; }
public override ApproveStep CreateApproveSequence(Employee employee) { throw new NotImplementedException(); //(Team Lead -> Account Manager -> SignOff) }
public void Approve(Employee approver) { if(this.IsApproved) { return; } if(approver == this.currentApproveStep.Approver) { this.currentApproveStep = null; } throw new Exception("Not Allowed #YOLO"); }
public abstract ApproveStep CreateApproveSequence(Employee employee);
public LeaveEntry(Employee employee, DateTime startDate, DateTime endDate, LeaveType leaveType) { this.startDate = startDate; this.endDate = endDate; this.IsFinalized = false; this.employee = employee; this.SetLeaveType(leaveType); }