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);
        }
 public void SetLeaveType(LeaveType leaveType)
 {
     this.currentApproveStep = leaveType.CreateApproveSequence(this.employee);
 }
 public void SetLeaveType(LeaveType type)
 {
     this.leaveType = type; //change
     this.currentApproveStep = leaveType.CreateApproveSequence(this.employee);
 }