public void VerifyOfflineDeposit(OfflineDeposit deposit, bool success) { const string name = "Operator 2"; if (success) { _depositCommands.Verify(deposit.Id, name, "test verification success"); } else { _depositCommands.Unverify(deposit.Id, name, "test verification fail"); } }
public Core.Payment.Entities.OfflineDeposit GetDepositById(Guid id) { OfflineDeposit offlineDeposit = OfflineDeposits .Include(p => p.BankAccount.Bank) .Include(p => p.Player) .Include(x => x.Player.Brand) .FirstOrDefault(x => x.Id == id); if (offlineDeposit == null) { throw new ArgumentException(string.Format("OfflineDeposit with Id {0} was not found", id)); } return(new Core.Payment.Entities.OfflineDeposit(offlineDeposit)); }
public void ConfirmOfflineDeposit(OfflineDeposit deposit) { _depositCommands.Confirm(new OfflineDepositConfirm { Amount = deposit.Amount, BankId = deposit.BankAccount.Bank.Id, DepositMethod = DepositMethod.CounterDeposit, Id = deposit.Id, PlayerAccountName = deposit.BankAccount.AccountName, PlayerAccountNumber = deposit.BankAccount.AccountNumber, ReferenceNumber = deposit.ReferenceNumber, TransferType = TransferType.SameBank }, new byte[0], new byte[0], new byte[0]); }
public void ApproveOfflineDeposit(OfflineDeposit deposit, bool success, decimal fee = 0) { const string name = "Operator 3"; if (success) { _depositCommands.Approve(new OfflineDepositApprove { Id = deposit.Id, Fee = fee, ActualAmount = deposit.Amount - fee, Remark = "test deposit approved" }, name); } else { _depositCommands.Reject(deposit.Id, name, "test deposit rejected"); } }