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); } }
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); } }