Exemplo n.º 1
0
        public OfflineDeposit CreateOfflineDeposit(PlayerData player, decimal amount)
        {
            var bankAccount = CreateBankAccount(player);
            var deposit     = _depositCommands.Submit(new OfflineDepositRequest
            {
                PlayerId      = player.Id,
                Amount        = amount,
                BankAccountId = bankAccount.Id,
                RequestedBy   = "Operator 1"
            });

            deposit.Player = _paymentQueries.GetPlayer(player.Id);
            return(deposit);
        }
Exemplo n.º 2
0
        private BankAccount CreateBankAccount(PlayerData player)
        {
            var bank        = CreateBank();
            var bankAccount = new BankAccount
            {
                Id            = Guid.NewGuid(),
                CurrencyCode  = player.CurrencyCode,
                Status        = BankAccountStatus.Active,
                AccountId     = "BoC2",
                AccountName   = player.GetFullName(),
                AccountNumber = "SE46 0583 9825 7466",
                AccountType   = "Main",
                Bank          = bank,
                Branch        = "Main Branch",
                Province      = "Vancouver"
            };

            _paymentRepository.BankAccounts.Add(bankAccount);
            return(bankAccount);
        }