Пример #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);
        }
Пример #2
0
 public abstract decimal CalculatePay(Paycheck paycheck);
Пример #3
0
 public bool IsInPayPeriod(Date theDate, Paycheck payCheck)
 {
     return(Date.IsBetween(theDate, payCheck.PayPeriodStartDate, payCheck.PayPeriodEndDate));
 }
 public decimal CalculateDeductions(Paycheck paycheck)
 {
     return(0M);
 }