public HolidayController(IErrorService errorService, IHolidayService holidayService, ITimeDayService timedayService, IOTRequestService otRequestService, IStatusRequestService statusRequestService, IRequestService requestService) : base(errorService) { _holidayService = holidayService; _timedayService = timedayService; _otRequestService = otRequestService; _statusRequestService = statusRequestService; _requestService = requestService; }
public void Initialize() { DbContext = new TMSDbContext(); dbFactory = new DbFactory(); unitOfWork = new UnitOfWork(dbFactory); timeDayRepository = new TimeDayRepository(dbFactory); timeDayService = new TimeDayService(timeDayRepository, unitOfWork); userManager = new UserManager <AppUser>(new UserStore <AppUser>(DbContext)); UserID2 = userManager.FindByName("nvthang").Id; UserID3 = userManager.FindByName("tqhuy").Id; }
public TimeDayController(IErrorService errorService , ITimeDayService timeDayService) : base(errorService) { this._timeDayService = timeDayService; }