/// <summary> /// Constructor /// </summary> /// <param name="employeeRepository">IEmployeeRepository dependency</param> /// <param name="securityHelper">ISecurityHelper dependency</param> /// <param name="ADGrapAPI">IADGraphApi dependency</param> public EmployeesController(IEmployeeRepository employeeRepository, ISecurityHelper securityHelper, IADGraphApi ADGrapAPI) { if (employeeRepository == null) { throw new ArgumentNullException("employeeRepository"); } if (securityHelper == null) { throw new ArgumentNullException("securityHelper"); } if (ADGrapAPI == null) { throw new ArgumentNullException("ADGrapAPI"); } _employeeRepository = employeeRepository; _securityHelper = securityHelper; _ADGrapAPI = ADGrapAPI; }
/// <summary> /// Constructor /// </summary> public TravelsNotificationHub() { _securityHelper = new SecurityHelper(); _ADGrapAPI = new ADGraphApi(); }