public void Payday(Paycheck paycheck) { var grosspay = Classification.CalculatePay(paycheck); var deductions = Affiliation.CalculateDeductions(paycheck); var netPay = grosspay - deductions; paycheck.GrossPay = grosspay; paycheck.NetPay = netPay; paycheck.Deductions = deductions; Method.Pay(paycheck); }
public abstract decimal CalculatePay(Paycheck paycheck);
public bool IsInPayPeriod(Date theDate, Paycheck payCheck) { return(Date.IsBetween(theDate, payCheck.PayPeriodStartDate, payCheck.PayPeriodEndDate)); }
public decimal CalculateDeductions(Paycheck paycheck) { return(0M); }