Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
2fcf849
Added error and response header constants. (bunq/sdk_csharp#63)
Dec 30, 2017
811b35d
Added method to extract response id. (bunq/sdk_csharp#63)
Dec 30, 2017
aff6b20
Added response id field to base exception class. (bunq/sdk_csharp#63)
Dec 30, 2017
03912ab
Refactored the classes that extend ApiException to support the new ba…
Dec 30, 2017
60e18a5
Refactored exception factory to use the response id. (bunq/sdk_csharp…
Dec 30, 2017
e775766
Pass the response id to exception factory from ApiClient on failed re…
Dec 30, 2017
6eddd49
Added test to ensure that the response id is populated with data. (bu…
Dec 30, 2017
961715a
Made INVALID_USER_PERSON_ID a constant. (bunq/sdk_csharp#63)
Dec 30, 2017
4a42f7d
Fixed invalid string format. (bunq/sdk_csharp#63)
Dec 30, 2017
e59fcf3
Fixed typos in ResponseId. (bunq/sdk_csharp#63)
Dec 31, 2017
3d9c9de
Use assert throws in test. (bunq/sdk_csharp#63)
Jan 2, 2018
3d7bb5e
Fixed indentions. (bunq/sdk_csharp#63)
Jan 2, 2018
3698815
Use build in new line separator. (bunq/sdk_csharp#63)
Jan 2, 2018
7429ce0
Changed some method signatures for cleaner code. (bunq/sdk_csharp#63)
Jan 2, 2018
7cb55ae
Changed Ilist to IEnumerable. (bunq/sdk_csharp#63)
Jan 2, 2018
29daba5
Merge branch 'develop' into bunq/sdk_csharp#63-add-response-id-to-fai…
andrederoos Jan 2, 2018
e88274c
Added missing else and moved else if statement to new line. (bunq/sdk…
Jan 2, 2018
5a2a805
Merge branch 'develop' into bunq/sdk_csharp#63-add-response-id-to-fai…
andrederoos Jan 2, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 5 additions & 13 deletions BunqSdk.Tests/Http/ResponseIdOnBadRequestTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,11 @@ public class ResponseIdOnBadRequestTest : BunqSdkTestBase
[Fact]
public void TestBadRequestWithResponseId()
{
ApiException caughtException = null;

try
{
UserPerson.Get(API_CONTEXT, INVALID_USER_PERSON_ID);
}
catch (ApiException e)
{
caughtException = e;
}
var caughtException = Assert.Throws<BadRequestException>(
() => UserPerson.Get(API_CONTEXT, INVALID_USER_PERSON_ID)
);

Assert.NotNull(caughtException);
Assert.NotNull(caughtException.ResponsId);
Assert.NotNull(caughtException.ResponseId);
}
}
}
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Newline at EOF