コード例 #1
0
ファイル: TicketService.cs プロジェクト: Thanak1234/test
        public TicketService()
        {
            var dbContext = DbContextSelector.getInstance().getDbFactory(DbContextSelector.DbName.Workflow);

            dataProcessingProvider = new TicketDataProcessingProvider(dbContext);
            this.unitOfWork        = new UnitOfWork(DbContextSelector.getInstance().getDbFactory(DbContextSelector.DbName.Workflow));

            ticketEnquiry = (ITicketEnquiry)dataProcessingProvider;
            load          = new LoadTicketData(dataProcessingProvider);

            this.subCategoryRepo             = new TicketSubCategoryRepository(dbContext);
            this.categoryRepo                = new TicketCategoryRepository(dbContext);
            this.agentRepo                   = new TicketAgentRepository(dbContext);
            this.deptRepo                    = new TicketDeptRepository(dbContext);
            this.groupPolicyRepo             = new TicketGroupPolicyRepository(dbContext);
            this.teamRepo                    = new TicketTeamRepository(dbContext);
            this.teamAgentAssignRepo         = new TicketTeamAgentAssignRepository(dbContext);
            this.ticketItemRepo              = new TicketItemRepository(dbContext);
            this.ticketLookupRepo            = new TicketLookupRepository(dbContext);
            this.slaRepo                     = new TicketSlaRepository(dbContext);
            this.priorityRepo                = new TicketPriorityRepository(dbContext);
            this.groupPolicyTeamAssignRepo   = new TicketGroupPolicyTeamAssignRepository(dbContext);
            this.ticketingRepo               = new TicketingRepository(dbContext);
            this.groupPolicyReportAssignRepo = new TicketGroupPolicyReportAssignRepository(dbContext);
            this.slaMappingRepo              = new TicketSlaMappingRepository(dbContext);
        }
コード例 #2
0
 public TicketItemService(ITicketItemRepository ticketItemRepository)
 {
     _ticketItemRepository = ticketItemRepository;
 }