Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public abstract decimal CalculatePay(Paycheck paycheck);
Ejemplo n.º 3
0
 public bool IsInPayPeriod(Date theDate, Paycheck payCheck)
 {
     return(Date.IsBetween(theDate, payCheck.PayPeriodStartDate, payCheck.PayPeriodEndDate));
 }
 public decimal CalculateDeductions(Paycheck paycheck)
 {
     return(0M);
 }