コード例 #1
0
 public double GetSumOfDeductibles(IPersonnelWithBenefits personnel)
 {
     logger.Log("Summing up all deductions.");
     // processing here
     logger.Log("Summed all deductions.");
     return(personnel.TaxDeductibles + personnel.LoanDeductibles + personnel.MedicalDeductibles);
 }
コード例 #2
0
 public void DeactivatePersonnel(IPersonnel personnel)
 {
     logger.Log("Deactivating personnel.");
     // processing here
     logger.Log($"Personnel deactivated.");
     emailSender.SendNotification("Personnel deactivated.");
 }
コード例 #3
0
 public void SetupReportFields()
 {
     logger.Log("Starting fields setup.");
     // processing here
     logger.Log($"Report fields have been setup.");
 }