예제 #1
0
 public UnitOfWorkMock(IPlayersWalletContext context)
 {
     Context                  = context;
     Players                  = new PlayerRepository(Context);
     Wallets                  = new WalletRepository(Context);
     Transactions             = new TransactionRepository(Context);
     TransactionResponseCache = new TransactionResponseCacheRepository(Context);
 }
예제 #2
0
 public PlayerService(IUnitOfWork unitOfWork, ILogger <PlayerService> _logger)
 {
     _unitOfWork               = unitOfWork;
     this._logger              = _logger;
     _players                  = unitOfWork.Players;
     _wallets                  = unitOfWork.Wallets;
     _transactions             = _unitOfWork.Transactions;
     _transactionResponseCache = unitOfWork.TransactionResponseCache;
 }