public void Initialize() { DbContext = new TMSDbContext(); dbFactory = new DbFactory(); listOTRepository = new ListOTRepository(dbFactory); unitOfWork = new UnitOfWork(dbFactory); objServices = new ListOTService(listOTRepository, unitOfWork); userManager = new UserManager <AppUser>(new UserStore <AppUser>(DbContext)); UserID2 = userManager.FindByName("vxthien").Id; UserID3 = userManager.FindByName("tqhuy").Id; }
public ListOTController(IErrorService errorService, IListOTService otrequestService) : base(errorService) { this._otrequestService = otrequestService; }