public async void Test_CheckPaymentStatusByRequestId() { var transactions = await _paymentClient.GetTransactions(); Assert.NotEmpty(transactions); var resp = await _paymentClient.CheckPaymentStatusByRequestId(transactions[0].RequestId); 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); }