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