Skip to content

Commit b38b89c

Browse files
committed
Merge branch 'release-0.9.1'
2 parents 61a52c4 + d802362 commit b38b89c

File tree

5 files changed

+52
-10
lines changed

5 files changed

+52
-10
lines changed

BunqSdk.Tests/README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# bunq C# SDK
2+
3+
## Introduction
4+
Hi developers!
5+
6+
Welcome to the bunq Java SDK integration tests. Currently we are not
7+
targeting the 100% test coverage, but rather want to be certain that the most
8+
common scenarios can run without any errors.
9+
10+
## Scenarios
11+
These are the scenarios that are currently being tested:
12+
* Create installation, session-server and device server
13+
* Create a new MonetaryAccount
14+
* Create a tab
15+
* Update the tab
16+
* Create attachment and avatar
17+
* Request money from first MA to second MA
18+
* Accept the request
19+
* Make a transaction from first MA to second MA
20+
* Create connect gr code
21+
* Make a payment to another sandbox user
22+
* Send a chat message in a recent payment
23+
* Delete the current session
24+
* Order a card with a second line
25+
26+
Besides these scenarios, some code of ApiContext, ApiClient and the JSON module
27+
are also tested :thumbs_up:.
28+
29+
## Configuration
30+
To run the tests you must first setup the test configuration JSON. The example
31+
of a configuration file is located at [`Tests/BunqSdkCsharpTest/Resources/config.example.json`](./BunqSdkCsharpTest/Resources/config.example.json).
32+
In order to make use of the configuration file, please copy the example to the
33+
same directory, fill in your sandbox user data and rename the copy to `config.json`.
34+
35+
## Execution
36+
To run tests via Rider, you can right click on the `BunqSdk.Tests` solution and should be able to run
37+
the tests cases form the IDE.

BunqSdk.sln

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ Global
1515
Release|Any CPU = Release|Any CPU
1616
EndGlobalSection
1717
GlobalSection(ProjectConfigurationPlatforms) = postSolution
18-
{24F716E7-76C3-4EE4-A69C-2D02B7F08F65}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19-
{24F716E7-76C3-4EE4-A69C-2D02B7F08F65}.Debug|Any CPU.Build.0 = Debug|Any CPU
2018
{24F716E7-76C3-4EE4-A69C-2D02B7F08F65}.Release|Any CPU.ActiveCfg = Release|Any CPU
2119
{24F716E7-76C3-4EE4-A69C-2D02B7F08F65}.Release|Any CPU.Build.0 = Release|Any CPU
20+
{24F716E7-76C3-4EE4-A69C-2D02B7F08F65}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21+
{24F716E7-76C3-4EE4-A69C-2D02B7F08F65}.Debug|Any CPU.Build.0 = Debug|Any CPU
2222
{D79B92DC-AEF3-42B9-8813-7171FE20A974}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2323
{D79B92DC-AEF3-42B9-8813-7171FE20A974}.Debug|Any CPU.Build.0 = Debug|Any CPU
2424
{D79B92DC-AEF3-42B9-8813-7171FE20A974}.Release|Any CPU.ActiveCfg = Release|Any CPU

BunqSdk/BunqSdk.csproj

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
<LangVersion>5</LangVersion>
77
</PropertyGroup>
88
<PropertyGroup>
9-
<AssemblyName>BunqSdk</AssemblyName>
10-
<PackageId>BunqSdk</PackageId>
9+
<AssemblyName>Bunq.Sdk</AssemblyName>
10+
<PackageId>Bunq.Sdk</PackageId>
1111
</PropertyGroup>
1212
<PropertyGroup>
13-
<VersionPrefix>1.0.0</VersionPrefix>
13+
<VersionPrefix>0.9.1.0</VersionPrefix>
1414
<VersionSuffix>beta</VersionSuffix>
1515
</PropertyGroup>
1616
<PropertyGroup>
@@ -19,6 +19,7 @@
1919
<PropertyGroup>
2020
<Authors>bunq</Authors>
2121
<Company>bunq</Company>
22+
<RepositoryUrl>https://github.com/bunq/sdk_csharp</RepositoryUrl>
2223
<NeutralLanguage>en-US</NeutralLanguage>
2324
<AssemblyTitle>bunq SDK</AssemblyTitle>
2425
<Copyright>bunq 2017</Copyright>
@@ -33,4 +34,4 @@
3334
<Content Include="../README.md" />
3435
<Content Include="../.gitignore" />
3536
</ItemGroup>
36-
</Project>
37+
</Project>

BunqSdk/Http/ApiClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class ApiClient
3838
/// Values for the default headers
3939
/// </summary>
4040
private const string CACHE_CONTROL_NONE = "no-cache";
41-
private const string USER_AGENT_BUNQ = "bunq-sdk-csharp/0.9.0";
41+
private const string USER_AGENT_BUNQ = "bunq-sdk-csharp/0.9.0.1-beta";
4242
private const string LANGUAGE_EN_US = "en_US";
4343
private const string REGION_NL_NL = "nl_NL";
4444
private const string GEOLOCATION_ZERO = "0 0 0 0 NL";

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Hi developers!
66

77
Welcome to the bunq C# SDK! 👨‍💻
88

9-
We're very happy to introduce yet another unique product: complete banking SDKs!
9+
We're very happy to introduce yet another unique product: complete banking SDKs!
1010
Now you can build even bigger and better apps and integrate them with your bank of the free! 🌈
1111

1212
Before you dive into this brand new SDK, please consider:
@@ -18,7 +18,7 @@ questions and experience 🎤
1818
Give us your feedback, create pull requests, build your very own bunq apps and most importantly:
1919
have fun! 💪
2020

21-
This SDK is in **beta**. We cannot guarantee constant availability or stability.
21+
This SDK is in **beta**. We cannot guarantee constant availability or stability.
2222
Thanks to your feedback we will make improvements on it.
2323

2424
## Installation
@@ -106,7 +106,7 @@ var monetaryAccount = MonetaryAccount.Get(apiContext, USER_ITEM_ID, MONETARY_ACC
106106
See [`MonetaryAccountSample.cs`](./BunqSdk.Samples/MonetaryAccountSample.cs)
107107

108108
#### Updating objects
109-
Updating objects through the API goes the same way as creating objects, except that also the object to update identifier
109+
Updating objects through the API goes the same way as creating objects, except that also the object to update identifier
110110
(ID or UUID) is needed.
111111

112112
```
@@ -172,3 +172,7 @@ $ dotnet run ApiContextSaveSample.cs
172172

173173
Please do not forget to set the `API_KEY` constant in `ApiContextSaveSample.cs` to your actual API key before running the
174174
sample!
175+
176+
## Running tests
177+
Information regarding the test cases can be found in the [README.md](./BunqSdk.Tests/README.md)
178+
located in [test](./BunqSdk.Tests).

0 commit comments

Comments
 (0)