Esempio n. 1
0
 public double Calculate(SalaryOverview salary)
 {
     return(CurrentSalaryMinusFiveBasicSalariesDiff(salary) * 0.20 + 5 * salary.BasicSalary * 0.15);
 }
Esempio n. 2
0
 private double CurrentSalaryMinusFiveBasicSalariesDiff(SalaryOverview salary) => salary.CurrentSalary - 5 * salary.BasicSalary;
 public CalculationStrategyFactory(SalaryOverview data)
 {
     _salary = data;
 }
 public SalaryCalculator(SalaryOverview data)
 {
     _salary   = data;
     _strategy = new CalculationStrategyFactory(data).Salary();
 }
Esempio n. 5
0
 public double Calculate(SalaryOverview salary)
 {
     return(salary.CurrentSalary * 0);
 }