private async Task ShouldRefundPayment_IdempotencyKey() { var refundResponse = new RefundResponse(); _apiClient.Setup(apiClient => apiClient.Post <RefundResponse>(PaymentsPath + "/payment_id/refunds", _authorization, null, CancellationToken.None, "test")) .ReturnsAsync(() => refundResponse); IPaymentsClient paymentsClient = new PaymentsClient(_apiClient.Object, _configuration.Object); var response = await paymentsClient.RefundPayment("payment_id", null, "test"); response.ShouldNotBeNull(); }