Example #1
0
 public TotalMonthlyIncome(
     ActualGrossSalary actualGrossSalary,
     TaxableAllowance[] taxableAllowances,
     NonTaxableAllowance[] nonTaxableAllowances)
 {
     Amount = actualGrossSalary.Amount +
              taxableAllowances.Select(_ => _.Amount).Sum() +
              nonTaxableAllowances.Select(_ => _.Amount).Sum();
 }
Example #2
0
 public TaxableIncome(
     ActualGrossSalary actualGrossSalary,
     TaxableAllowance[] taxableAllowances)
 {
     Amount = actualGrossSalary.Amount + taxableAllowances.Select(_ => _.Amount).Sum();
 }