public LeaveManagementController(ILeaveManagementService leaveService, IServiceObjectFactory objectFactory, IViewModelFactory viewModelFactory) { this.LeaveManagementService = leaveService; this.ObjectFactory = objectFactory; this.ViewModelFactory = viewModelFactory; }
public LeaveBatchRunner(ISessionStorage store, ISystemService system, ILeaveManagementService main, IEmployeeService employeeService) : base(system, main) { this.SessionStore = store; SessionHelper h = new SessionHelper(store, new APIKeyBasedTokenGenerator()); this._employeeService = employeeService; this._leaveManagementService = main; BatchStatus = new BatchOperationStatus() { classId = ClassId.LMLR, processed = 0, tableSize = 0, status = 0 }; ids = new Dictionary <string, string>(); idL = new Dictionary <string, string>(); }