public PlayHistoryAppService(
     IObjectMapper objectMapper,
     IRepository <PlayHistory> repository,
     CardAppService cardAppService,
     IDbContextProvider <MahjongDbContext> dbContextProvider,
     IRepository <Card, string> cardRepository)
     : base(repository)
 {
     _objectMapper      = objectMapper;
     _dbContextProvider = dbContextProvider;
 }
示例#2
0
 public TablesController(TableAppService tableAppService,
                         ActionAppService actionAppService,
                         TableSeatAppService tableSeatAppService,
                         PlayHistoryAppService playHistoryAppService,
                         CardAppService cardAppService)
 {
     _tableAppService       = tableAppService;
     _actionAppService      = actionAppService;
     _tableSeatAppService   = tableSeatAppService;
     _playHistoryAppService = playHistoryAppService;
     _cardAppService        = cardAppService;
 }
 public TableAppService(
     IObjectMapper objectMapper,
     IRepository <Table> repository,
     IRepository <TableSeat> tableSeatRepository,
     CardAppService cardAppService,
     IDbContextProvider <MahjongDbContext> dbContextProvider,
     IRepository <Card, string> cardRepository)
     : base(repository)
 {
     _objectMapper        = objectMapper;
     _tableSeatRepository = tableSeatRepository;
     _cardAppService      = cardAppService;
     _cardRepository      = cardRepository;
     _dbContextProvider   = dbContextProvider;
 }
 public CardsController(CardAppService cardAppService)
 {
     _cardAppService = cardAppService;
 }