예제 #1
0
        public void CreateAndExecuteWithdrawal_Test()
        {
            var symbol = "NEO";
            var amount = 1M;

            var withdrawal = _repoAuth.CreateWithdrawal(symbol, amount).Result;

            Assert.NotNull(withdrawal);

            var executedWithdrawal = _repoAuth.ExecuteWithdrawal(withdrawal).Result;

            Assert.NotNull(executedWithdrawal);
        }
예제 #2
0
 /// <summary>
 /// Execute a withdrawal
 /// </summary>
 /// <param name="withdrawalId">Guid of withdrawal request</param>
 /// <returns>Withdrawal response</returns>
 public WithdrawalResponse ExecuteWithdrawal(string withdrawalId)
 {
     return(_repository.ExecuteWithdrawal(withdrawalId).Result);
 }