Esempio n. 1
0
 public void VerifyOfflineDeposit(OfflineDeposit deposit, bool success)
 {
     if (success)
     {
         _offlineDepositCommands.Verify(deposit.Id, deposit.BankAccountId, "test verification success");
     }
     else
     {
         _offlineDepositCommands.Unverify(deposit.Id, "test verification fail", UnverifyReasons.D0001);
     }
 }
Esempio n. 2
0
 public void ConfirmOfflineDeposit(OfflineDeposit deposit)
 {
     _offlineDepositCommands.Confirm(new OfflineDepositConfirm
     {
         Amount             = deposit.Amount,
         BankId             = deposit.BankAccount.Bank.Id,
         OfflineDepositType = DepositMethod.CounterDeposit,
         Id = deposit.Id,
         //PlayerAccountName = deposit.BankAccount.AccountName,
         PlayerAccountName   = deposit.Player.GetFullName(),
         PlayerAccountNumber = deposit.BankAccount.AccountNumber,
         ReferenceNumber     = deposit.TransactionNumber,
         TransferType        = TransferType.SameBank
     }, "", new byte[0], new byte[0], new byte[0]);
 }
Esempio n. 3
0
 public void ApproveOfflineDeposit(OfflineDeposit deposit, bool success, decimal fee = 0)
 {
     if (success)
     {
         _offlineDepositCommands.Approve(new OfflineDepositApprove
         {
             Id           = deposit.Id,
             Fee          = fee,
             ActualAmount = deposit.Amount - fee,
             Remark       = "test deposit approved"
         });
     }
     else
     {
         _offlineDepositCommands.Reject(deposit.Id, "test deposit rejected");
     }
 }