Skip to content

Commit 4a90c80

Browse files
author
Joao Antao
committed
Rename constants consistently. (#58)
1 parent f405de3 commit 4a90c80

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

BunqSdk.Tests/Model/Generated/Endpoint/MonetaryAccountBankTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class MonetaryAccountBankTest : BunqSdkTestBase
1818
private const string MonetaryAccountBankSubStatus = "REDEMPTION_VOLUNTARY";
1919
private const string MonetaryAccountBankReason = "OTHER";
2020
private const string MonetaryAccountBankReasonDescription = "Because this is a test";
21-
private const string MonetaryAccountBankCurrency = "EUR";
21+
private const string MonetaryAccountBankCurrencyEur = "EUR";
2222
private const string MonetaryAccountBankDescription = "Test C# monetary account";
2323

2424
private static readonly int UserId = Config.GetUserId();
@@ -36,7 +36,7 @@ public void TestCreationNewMonetaryAccount()
3636
{
3737
var requestMap = new Dictionary<string, object>
3838
{
39-
{MonetaryAccountBank.FIELD_CURRENCY, MonetaryAccountBankCurrency},
39+
{MonetaryAccountBank.FIELD_CURRENCY, MonetaryAccountBankCurrencyEur},
4040
{MonetaryAccountBank.FIELD_DESCRIPTION, MonetaryAccountBankDescription}
4141
};
4242
var monetaryAccountToCloseId = MonetaryAccountBank.Create(ApiContext, requestMap, UserId).Value;

BunqSdk.Tests/Model/Generated/Endpoint/PaymentChatTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class PaymentChatTest : BunqSdkTestBase
1818
/// Config values.
1919
/// </summary>
2020
private const string PaymentChatAmountEur = "0.01";
21-
private const string PaymentChatCurrency = "EUR";
21+
private const string PaymentChatCurrencyEur = "EUR";
2222
private const string PaymentChatDescription = "Payment From C# Test";
2323
private const string PaymentChatText = "test msg send from C# test";
2424

@@ -52,7 +52,7 @@ private static int CreatePaymentAndGetId()
5252
{
5353
var requestMap = new Dictionary<string, object>
5454
{
55-
{Payment.FIELD_AMOUNT, new Amount(PaymentChatAmountEur, PaymentChatCurrency)},
55+
{Payment.FIELD_AMOUNT, new Amount(PaymentChatAmountEur, PaymentChatCurrencyEur)},
5656
{Payment.FIELD_COUNTERPARTY_ALIAS, CounterPartyAlias},
5757
{Payment.FIELD_DESCRIPTION, PaymentChatDescription},
5858
};

BunqSdk.Tests/Model/Generated/Endpoint/PaymentTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class PaymentTest : BunqSdkTestBase
1616
/// Config values.
1717
/// </summary>
1818
private const string PaymentAmountEur = "0.01";
19-
private const string PaymentCurrency = "EUR";
19+
private const string PaymentCurrencyEur = "EUR";
2020
private const string PaymentDescription = "C# test Payment";
2121

2222
private static readonly int UserId = Config.GetUserId();
@@ -39,7 +39,7 @@ public void TestMakePaymentToOtherUser()
3939
{
4040
var requestMap = new Dictionary<string, object>
4141
{
42-
{Payment.FIELD_AMOUNT, new Amount(PaymentAmountEur, PaymentCurrency)},
42+
{Payment.FIELD_AMOUNT, new Amount(PaymentAmountEur, PaymentCurrencyEur)},
4343
{Payment.FIELD_DESCRIPTION, PaymentDescription},
4444
{Payment.FIELD_COUNTERPARTY_ALIAS, CounterPartyOther}
4545
};
@@ -57,7 +57,7 @@ public void TestMakePaymentToOtherAccount()
5757
{
5858
var requestMap = new Dictionary<string, object>
5959
{
60-
{Payment.FIELD_AMOUNT, new Amount(PaymentAmountEur, PaymentCurrency)},
60+
{Payment.FIELD_AMOUNT, new Amount(PaymentAmountEur, PaymentCurrencyEur)},
6161
{Payment.FIELD_DESCRIPTION, PaymentDescription},
6262
{Payment.FIELD_COUNTERPARTY_ALIAS, CounterPartySelf}
6363
};

BunqSdk.Tests/Model/Generated/Endpoint/RequestInquiryTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class RequestInquiryTest : BunqSdkTestBase
1717
/// Config values.
1818
/// </summary>
1919
private const string RequestInquiryAmountEur = "0.01";
20-
private const string RequestInquiryCurrency = "EUR";
20+
private const string RequestInquiryCurrencyEur = "EUR";
2121
private const string RequestInquiryDescription = "C# test Payment";
2222
private const string RequestInquiryStatus = "ACCEPTED";
2323
private const int IndexFirst = 0;
@@ -40,7 +40,7 @@ public void TestRequestInquiry()
4040
{
4141
var requestMap = new Dictionary<string, object>
4242
{
43-
{RequestInquiry.FIELD_AMOUNT_INQUIRED, new Amount(RequestInquiryAmountEur, RequestInquiryCurrency)},
43+
{RequestInquiry.FIELD_AMOUNT_INQUIRED, new Amount(RequestInquiryAmountEur, RequestInquiryCurrencyEur)},
4444
{RequestInquiry.FIELD_COUNTERPARTY_ALIAS, CounterSelfParty},
4545
{RequestInquiry.FIELD_DESCRIPTION, RequestInquiryDescription},
4646
{RequestInquiry.FIELD_ALLOW_BUNQME, false}

BunqSdk.Tests/Model/Generated/Endpoint/TabUsageSingleTest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ public class TabUsageSingleTest : BunqSdkTestBase
1818
/// </summary>
1919
private const string TabUsageSingleDescription = "Pay the tab for Java test please.";
2020
private const string TabUsageSingleStatusOpen = "OPEN";
21-
private const string TabAmountEur = "42.00";
22-
private const string TabCurrency = "EUR";
21+
private const string TabUsageSingleAmountEur = "42.00";
22+
private const string TabUsageSingleCurrencyEur = "EUR";
2323
private const string TabItemShopDescription = "Super expensive java tea";
2424
private const string TabUsageSingleStatusWaiting = "WAITING_FOR_PAYMENT";
2525

@@ -64,7 +64,7 @@ private static string CreateTabAndGetUuid()
6464
{
6565
{TabUsageSingle.FIELD_DESCRIPTION, TabUsageSingleDescription},
6666
{TabUsageSingle.FIELD_STATUS, TabUsageSingleStatusOpen},
67-
{TabUsageSingle.FIELD_AMOUNT_TOTAL, new Amount(TabAmountEur, TabCurrency)}
67+
{TabUsageSingle.FIELD_AMOUNT_TOTAL, new Amount(TabUsageSingleAmountEur, TabUsageSingleCurrencyEur)}
6868
};
6969

7070
return TabUsageSingle.Create(ApiContext, createTabMap, UserId, MonetaryAccountId,
@@ -75,7 +75,7 @@ private static void AddTabItem(string tabUuid)
7575
{
7676
var tabItemMap = new Dictionary<string, object>
7777
{
78-
{TabItemShop.FIELD_AMOUNT, new Amount(TabAmountEur, TabCurrency)},
78+
{TabItemShop.FIELD_AMOUNT, new Amount(TabUsageSingleAmountEur, TabUsageSingleCurrencyEur)},
7979
{TabItemShop.FIELD_DESCRIPTION, TabItemShopDescription}
8080
};
8181
TabItemShop.Create(ApiContext, tabItemMap, UserId, MonetaryAccountId, CashRegisterId, tabUuid);

0 commit comments

Comments
 (0)