private async Task ShouldQueryPaymentReport() { //Arrange var request = new ReconciliationQueryPaymentsFilter { Limit = 200, Reference = Reference, To = _to, From = _from }; var returnResponse = new ReconciliationPaymentReportResponse { Count = 5, Data = new List <PaymentReportData>() }; _apiClient.Setup(apiClient => apiClient.Query <ReconciliationPaymentReportResponse>("reporting/payments", _authorization, request, CancellationToken.None)) .ReturnsAsync(() => returnResponse); //Act var response = await _reconciliationClient.QueryPaymentsReport(request); //Assert response.ShouldNotBeNull(); response.Count.ShouldBe(returnResponse.Count); }
private async Task ShouldQuerySinglePaymentReport() { //Arrange string paymentId = "1"; var returnResponse = new ReconciliationPaymentReportResponse { Count = 5, Data = new List <PaymentReportData>() }; _apiClient.Setup(apiClient => apiClient.Get <ReconciliationPaymentReportResponse>($"reporting/payments/{paymentId}", _authorization, CancellationToken.None)) .ReturnsAsync(() => returnResponse); //Act var response = await _reconciliationClient.SinglePaymentReport(paymentId); //Assert response.ShouldNotBeNull(); response.Count.ShouldBe(returnResponse.Count); }