How does the construction injection work with dependency injection?
I haveWith the following code:
public class AdvancedSearchController : Controller
{
private EmployeeController _employeeController;
public AdvancedSearchController(EmployeeController employeeController)
{
_employeeController = employeeController;
}
WhatWhen and how does the employeeControlleremployeeController in the code above get set? Or or passed into the constructor? How does this magic happen?