public UnitOfWork(TerminalContext context, IEventBus eventBus, IHubContext <TerminalHub> terminalHub) { _context = context; _eventBus = eventBus; _hub = terminalHub; Terminals = new TerminalRepository(context); BreakLogEntries = new BreakLogEntryRepository(context); TicketCategories = new TicketCategoryRepository(context); TerminalCategories = new TerminalCategoryRepository(context); }
public UnitOfWork(QueueContext context, IEventBus eventBus, IHubContext <EmpireQueueHub> empireQueueHub) { _hub = empireQueueHub; _context = context; _eventBus = eventBus; EmpireQueues = new QueueRepository(context); Tickets = new TicketRepository(context); TicketCategories = new TicketCategoryRepository(context); TerminalCategories = new TerminalCategoryRepository(context); TerminalTickets = new TerminalTicketRepository(context); Terminals = new TerminalRepository(context); }