Пример #1
0
 private void Given_a_salaried_employee_whose_salary_is_60000()
 {
     _employee = new SalariedEmployee { Salary = 60000 };
 }
Пример #2
0
 public decimal GetAmountEmployeeWasPaid(Employee employee)
 {
     var paycheck = Paychecks.SingleOrDefault(p => p.Employee == employee);
     return paycheck != null ? paycheck.Amount : 0;
 }
Пример #3
0
 private void Given_an_hourly_employee_whose_hourly_rate_is_75_per_hour()
 {
     _employee = new HourlyEmployee {HourlyRate = 75};
 }