Skip to content

Commit 4362799

Browse files
committed
use lists for pagination scenario test [#17]
1 parent 17eeb67 commit 4362799

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

BunqSdk.Tests/Http/PaginationScenarioTest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class PaginationScenarioTest : BunqSdkTestBase
4444
public void TestApiScenarioPaymentListingWithPagination()
4545
{
4646
EnsureEnoughPayments();
47-
var paymentsExpected = new HashSet<Payment>(GetPaymentsRequired());
47+
var paymentsExpected = new List<Payment>(GetPaymentsRequired());
4848
var paginationCountOnly = new Pagination
4949
{
5050
Count = PAYMENT_LISTING_PAGE_SIZE
@@ -56,9 +56,9 @@ public void TestApiScenarioPaymentListingWithPagination()
5656
var paginationPrevious = paymentResponsePrevious.Pagination;
5757
var paymentResponsePreviousNext = ListPayments(paginationPrevious.UrlParamsNextPage);
5858

59-
var paymentsActual = new HashSet<Payment>();
60-
paymentsActual.UnionWith(paymentResponsePreviousNext.Value);
61-
paymentsActual.UnionWith(paymentResponsePrevious.Value);
59+
var paymentsActual = new List<Payment>();
60+
paymentsActual.AddRange(paymentResponsePreviousNext.Value);
61+
paymentsActual.AddRange(paymentResponsePrevious.Value);
6262
var paymentsExpectedSerialized = BunqJsonConvert.SerializeObject(paymentsExpected);
6363
var paymentsActualSerialized = BunqJsonConvert.SerializeObject(paymentsActual);
6464

0 commit comments

Comments
 (0)