Skip to content

Commit

Permalink
Minor refactor for styling. (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
OGKevin committed Jul 10, 2018
1 parent f7a6d0e commit dc1182e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion BunqSdk.Tests/Http/PaginationScenarioTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private static BunqResponse<List<Payment>> ListPayments(IDictionary<string, stri
return Payment.List(urlParams: urlParams);
}

private void CreatePayment()
private static void CreatePayment()
{
Payment.Create(new Amount(PaymentAmountEur, PaymentCurrency), GetPointerBravo(), PaymentDescription);
}
Expand Down
2 changes: 1 addition & 1 deletion BunqSdk.Tests/Model/Generated/Endpoint/PaymentChatTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public void TestSendPaymentChat()
ChatMessageText.Create(chatId, MessageText);
}

private int CreatePaymentAndGetId()
private static int CreatePaymentAndGetId()
{
return Payment.Create(
new Amount(PaymentAmountEur, PaymentCurrency),
Expand Down
5 changes: 3 additions & 2 deletions BunqSdk/Context/UserContext.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Linq;
using Bunq.Sdk.Exception;
using Bunq.Sdk.Model.Core;
using Bunq.Sdk.Model.Generated.Endpoint;
Expand Down Expand Up @@ -35,9 +36,9 @@ public UserContext(int userId)
this.SetUser(GetUserObject());
}

private BunqModel GetUserObject()
private static BunqModel GetUserObject()
{
return User.List().Value[0].GetReferencedObject();
return User.List().Value.First().GetReferencedObject();
}

private void SetUser(BunqModel user)
Expand Down

0 comments on commit dc1182e

Please sign in to comment.