Skip to content

Commit 1312147

Browse files
author
Kevin Hellemun
committed
Modefied tests to use parent object. (#43)
1 parent dde661f commit 1312147

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

BunqSdk.Tests/Model/Generated/Object/NotificationUrlTest.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ public class NotificationUrlTest : BunqSdkTestBase
1818
private const string GET_PAYMENT = "Payment";
1919
private const string GET_BUNQ_ME_TAB = "BunqMeTab";
2020
private const string GET_CHAT_MESSAGE_ANNOUNCEMENT = "ChatMessageAnnouncement";
21+
private const string GET_CHAT_MESSAGE = "ChatMessage";
2122
private const string GET_DRAFT_PAYMENT = "DraftPayment";
2223
private const string GET_MASTER_CARD_ACTION = "MasterCardAction";
2324
private const string GET_MONETARY_ACCOUNT_BANK = "MonetaryAccountBank";
25+
private const string GET_MONETARY_ACCOUNT = "MonetaryAccount";
2426
private const string GET_PAYMENT_BATCH = "PaymentBatch";
2527
private const string GET_REQUEST_INQUIRY = "RequestInquiry";
2628
private const string GET_REQUEST_RESPONSE = "RequestResponse";
@@ -69,6 +71,7 @@ string referencedObjectPropertyName
6971

7072
var model = notificationUrl.Object.GetType().GetProperty(referencedObjectPropertyName).GetValue(
7173
notificationUrl.Object);
74+
// Console.WriteLine(notificationUrl.Object);
7275
var referencedModel = notificationUrl.Object.GetReferencedObject();
7376

7477
Assert.NotNull(model);
@@ -113,8 +116,8 @@ public void TestChatMessageAnnouncementModel()
113116
{
114117
ExecuteNotificationUrlTest(
115118
JSON_PATH_CHAT_MESSAGE_ANNOUNCEMENT_MODEL,
116-
typeof(ChatMessageAnnouncement),
117-
GET_CHAT_MESSAGE_ANNOUNCEMENT
119+
typeof(ChatMessage),
120+
GET_CHAT_MESSAGE
118121
);
119122
}
120123

@@ -143,8 +146,8 @@ public void TestMonetaryAccountBankModel()
143146
{
144147
ExecuteNotificationUrlTest(
145148
JSON_PATH_MONETARY_ACCOUNT_BANK_MODEL,
146-
typeof(MonetaryAccountBank),
147-
GET_MONETARY_ACCOUNT_BANK
149+
typeof(MonetaryAccount),
150+
GET_MONETARY_ACCOUNT
148151
);
149152
}
150153

0 commit comments

Comments
 (0)