Skip to content

Commit

Permalink
Fix another broken unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Viincenttt committed Jul 9, 2024
1 parent 0fdbf8a commit e16cf8a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/Mollie.Tests.Unit/Client/PaymentClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,14 @@ public async Task CreatePaymentAsync_CreditcardPayment_RequestAndResponseAreConv
CardToken = "card-token"
};
const string jsonRequest = @"{
""cardToken"": ""card-token"",
""amount"": {
""currency"": ""EUR"",
""value"": ""100.00""
},
""description"": ""Description"",
""redirectUrl"": ""http://www.mollie.com"",
""webhookUrl"": ""http://www.mollie.com/webhook"",
""billingAddress"": {
""streetAndNumber"": ""Keizersgracht 313"",
""postalCode"": ""1000AA"",
Expand All @@ -596,14 +604,6 @@ public async Task CreatePaymentAsync_CreditcardPayment_RequestAndResponseAreConv
""region"": ""Noord-Holland"",
""country"": ""NL""
},
""cardToken"": ""card-token"",
""amount"": {
""currency"": ""EUR"",
""value"": ""100.00""
},
""description"": ""Description"",
""redirectUrl"": ""http://www.mollie.com"",
""webhookUrl"": ""http://www.mollie.com/webhook"",
""method"": [
""ideal""
]
Expand Down Expand Up @@ -636,7 +636,7 @@ public async Task CreatePaymentAsync_CreditcardPayment_RequestAndResponseAreConv
}";
var mockHttp = CreateMockHttpMessageHandler(HttpMethod.Post, $"{BaseMollieClient.ApiEndPoint}payments", jsonResponse, jsonRequest);
HttpClient httpClient = mockHttp.ToHttpClient();
PaymentClient paymentClient = new PaymentClient("abcde", httpClient);
PaymentClient paymentClient = new("abcde", httpClient);

// When: We send the request
var result = await paymentClient.CreatePaymentAsync(paymentRequest);
Expand Down

0 comments on commit e16cf8a

Please sign in to comment.