Skip to content

Commit 980b9e8

Browse files
authored
Merge pull request #2 from bunq/feature/test_readme
Added readme for tests
2 parents 61a52c4 + 545f348 commit 980b9e8

File tree

2 files changed

+44
-3
lines changed

2 files changed

+44
-3
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.

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)