public UserService(IAppUserRepository appUserRepository, IUserOnsiteRepository userOnsiteRepository, IUnitOfWork unitOfWork, IOTRequestUserRepository oTRequestUserRepository, IRequestRepository requestRepository, IOTRequestRepository oTRequestRepository, IExplanationRequestRepository explanationRequestRepository, IEntitleDayAppUserRepository entitleDayAppUserRepository, IAbnormalCaseRepository abnormalCaseRepository, IFingerTimeSheetRepository fingerTimeSheetRepository, IFingerMachineUserRepository fingerMachineUserRepository, IChildcareLeaveRepository childcareLeaveRepository, IAnnouncementRepository announcementRepository, IAnnouncementUserRepository announcementUserRepository, ITimeSheetRepository timeSheetRepository ) { this._appUserRepository = appUserRepository; this._userOnsiteRepository = userOnsiteRepository; this._unitOfWork = unitOfWork; this._oTRequestUserRepository = oTRequestUserRepository; this._requestRepository = requestRepository; this._oTRequestRepository = oTRequestRepository; this._explanationRequestRepository = explanationRequestRepository; this._entitleDayAppUserRepository = entitleDayAppUserRepository; this._abnormalCaseRepository = abnormalCaseRepository; this._fingerTimeSheetRepository = fingerTimeSheetRepository; this._fingerMachineUserRepository = fingerMachineUserRepository; this._childcareLeaveRepository = childcareLeaveRepository; this._announcementRepository = announcementRepository; this._announcementUserRepository = announcementUserRepository; this._timeSheetRepository = timeSheetRepository; }
public void Initialize() { DbContext = new TMSDbContext(); dbFactory = new DbFactory(); objAppUserRepository = new AppUserRepository(dbFactory); objUserOnsiteRepository = new UserOnsiteRepository(dbFactory); unitOfWork = new UnitOfWork(dbFactory); UserID1 = "79187af0-b27b-486c-bfab-394981fe2b9233"; UserID2 = "79187af0-b27b-486c-bfab-394981fe2b9233"; }
public UserOnsiteService(IUserOnsiteRepository userOnsiteRepository, IUnitOfWork unitOfWork) { this._userOnsiteRepository = userOnsiteRepository; this._unitOfWork = unitOfWork; }