示例#1
0
 public void GetDirectDebitWithOrderId()
 {
     using (var client = CreateClient())
     {
         var debit = CreateDirectDebit(client);
         MoneyInDirectDebitResponse result = client.GetDirectDebit(debit.OrderId, UserId);
         Assert.IsNotNull(result);
         Assert.AreEqual(debit.Id, result.Id);
     }
 }
示例#2
0
 public void RemoveDirectDebit()
 {
     using (var client = CreateClient())
     {
         var debit = CreateDirectDebit(client);
         MoneyInDirectDebitResponse result = client.DeleteDirectDebit(debit.Id, UserId);
         Assert.IsNotNull(result);
         Assert.AreEqual(debit.Id, result.Id);
         Assert.AreEqual(PaymentStatus.Canceled, result.Status);
     }
 }