public void ChooseHealthPlan(Employee employee, HealthPlan healthPlan)
        {
            employee.SetHelthPlan(healthPlan);
            _employeeRepository.Update(employee);

            _mediator.Publish(new EmployeeEmailNotification(
                                  "*****@*****.**",
                                  employee.Email,
                                  "Health Plan Approved",
                                  $"Congratulations {employee.Name}, your helth plan is aproved!"));
        }
Beispiel #2
0
 public void SetHelthPlan(HealthPlan healthPlan)
 {
     HealthPlan = healthPlan;
 }