Skip to content

Commit

Permalink
cardmanagement-rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
byasarcse committed Oct 14, 2024
1 parent a8e0795 commit 2a686f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Iyzipay.Tests/Functional/CardManagementPageTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public async Task Should_Initialize_Card_Management_PageAsync()
{
CreateCardManagementPageInitializeRequest request = CardManagementPageRequestBuilder.Create().Build();

CardManagementPageInitialize cardManagementPageInitialize = await CardManagementPageInitialize.Create(request, _options);
CardManagementPageInitialize cardManagementPageInitialize = CardManagementPageInitialize.Create(request, _options);
PrintResponse(cardManagementPageInitialize);

Assert.AreEqual(Locale.TR.ToString(), cardManagementPageInitialize.Locale);
Expand All @@ -38,7 +38,7 @@ public async Task Should_Not_Initialize_Card_Management_Page_When_CallbackUrl_No
{
CreateCardManagementPageInitializeRequest request = CardManagementPageRequestBuilder.Create().CallbackUrl("").Build();

CardManagementPageInitialize cardManagementPageInitialize = await CardManagementPageInitialize.Create(request, _options);
CardManagementPageInitialize cardManagementPageInitialize = CardManagementPageInitialize.Create(request, _options);
PrintResponse(cardManagementPageInitialize);

Assert.AreEqual(Status.FAILURE.ToString(), cardManagementPageInitialize.Status);
Expand Down
2 changes: 1 addition & 1 deletion Iyzipay.Tests/Functional/CardManagementRetrieveCardTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public void SetUp()
public async Task Should_Retrieve_CardsAsync()

Check warning on line 20 in Iyzipay.Tests/Functional/CardManagementRetrieveCardTest.cs

View workflow job for this annotation

GitHub Actions / test

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
{
CreateCardManagementPageInitializeRequest initializeRequest = CardManagementPageRequestBuilder.Create().Build();
CardManagementPageInitialize cardManagementPageInitialize = await CardManagementPageInitialize.Create(initializeRequest, _options);
CardManagementPageInitialize cardManagementPageInitialize = CardManagementPageInitialize.Create(initializeRequest, _options);

RetrieveCardManagementPageCardRequest retrieveCardRequest = CardManagementRetrieveCardBuilder.Create()
.PageToken(cardManagementPageInitialize.Token)
Expand Down

0 comments on commit 2a686f7

Please sign in to comment.