public async void Test_GetTransactions_Valid() { var from = DateTime.Parse("01.06.2018"); var to = DateTime.Parse("10.06.2018"); var resp = await _paymentClient.GetTransactions(from, to, TransactionType.CARD_CREDIT); Assert.NotNull(resp); }
public async void Test_CheckPaymentStatusByRequestId() { var transactions = await _paymentClient.GetTransactions(); Assert.NotEmpty(transactions); var transactionWithRequestId = transactions.FirstOrDefault(i => !string.IsNullOrEmpty(i.RequestId)); if (transactionWithRequestId == null) { return; } await Task.Delay(200); var resp = await _paymentClient.CheckPaymentStatusByRequestId(transactionWithRequestId.RequestId); Assert.NotNull(resp); }