Skip to content

Commit

Permalink
Merge branch 'release-0.9.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
dnl-blkv committed Aug 7, 2017
2 parents 61a52c4 + d802362 commit b38b89c
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 10 deletions.
37 changes: 37 additions & 0 deletions BunqSdk.Tests/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# bunq C# SDK

## Introduction
Hi developers!

Welcome to the bunq Java SDK integration tests. Currently we are not
targeting the 100% test coverage, but rather want to be certain that the most
common scenarios can run without any errors.

## Scenarios
These are the scenarios that are currently being tested:
* Create installation, session-server and device server
* Create a new MonetaryAccount
* Create a tab
* Update the tab
* Create attachment and avatar
* Request money from first MA to second MA
* Accept the request
* Make a transaction from first MA to second MA
* Create connect gr code
* Make a payment to another sandbox user
* Send a chat message in a recent payment
* Delete the current session
* Order a card with a second line

Besides these scenarios, some code of ApiContext, ApiClient and the JSON module
are also tested :thumbs_up:.

## Configuration
To run the tests you must first setup the test configuration JSON. The example
of a configuration file is located at [`Tests/BunqSdkCsharpTest/Resources/config.example.json`](./BunqSdkCsharpTest/Resources/config.example.json).
In order to make use of the configuration file, please copy the example to the
same directory, fill in your sandbox user data and rename the copy to `config.json`.

## Execution
To run tests via Rider, you can right click on the `BunqSdk.Tests` solution and should be able to run
the tests cases form the IDE.
4 changes: 2 additions & 2 deletions BunqSdk.sln
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{24F716E7-76C3-4EE4-A69C-2D02B7F08F65}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{24F716E7-76C3-4EE4-A69C-2D02B7F08F65}.Debug|Any CPU.Build.0 = Debug|Any CPU
{24F716E7-76C3-4EE4-A69C-2D02B7F08F65}.Release|Any CPU.ActiveCfg = Release|Any CPU
{24F716E7-76C3-4EE4-A69C-2D02B7F08F65}.Release|Any CPU.Build.0 = Release|Any CPU
{24F716E7-76C3-4EE4-A69C-2D02B7F08F65}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{24F716E7-76C3-4EE4-A69C-2D02B7F08F65}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D79B92DC-AEF3-42B9-8813-7171FE20A974}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D79B92DC-AEF3-42B9-8813-7171FE20A974}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D79B92DC-AEF3-42B9-8813-7171FE20A974}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
9 changes: 5 additions & 4 deletions BunqSdk/BunqSdk.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
<LangVersion>5</LangVersion>
</PropertyGroup>
<PropertyGroup>
<AssemblyName>BunqSdk</AssemblyName>
<PackageId>BunqSdk</PackageId>
<AssemblyName>Bunq.Sdk</AssemblyName>
<PackageId>Bunq.Sdk</PackageId>
</PropertyGroup>
<PropertyGroup>
<VersionPrefix>1.0.0</VersionPrefix>
<VersionPrefix>0.9.1.0</VersionPrefix>
<VersionSuffix>beta</VersionSuffix>
</PropertyGroup>
<PropertyGroup>
Expand All @@ -19,6 +19,7 @@
<PropertyGroup>
<Authors>bunq</Authors>
<Company>bunq</Company>
<RepositoryUrl>https://github.com/bunq/sdk_csharp</RepositoryUrl>
<NeutralLanguage>en-US</NeutralLanguage>
<AssemblyTitle>bunq SDK</AssemblyTitle>
<Copyright>bunq 2017</Copyright>
Expand All @@ -33,4 +34,4 @@
<Content Include="../README.md" />
<Content Include="../.gitignore" />
</ItemGroup>
</Project>
</Project>
2 changes: 1 addition & 1 deletion BunqSdk/Http/ApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class ApiClient
/// Values for the default headers
/// </summary>
private const string CACHE_CONTROL_NONE = "no-cache";
private const string USER_AGENT_BUNQ = "bunq-sdk-csharp/0.9.0";
private const string USER_AGENT_BUNQ = "bunq-sdk-csharp/0.9.0.1-beta";
private const string LANGUAGE_EN_US = "en_US";
private const string REGION_NL_NL = "nl_NL";
private const string GEOLOCATION_ZERO = "0 0 0 0 NL";
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Hi developers!

Welcome to the bunq C# SDK! 👨‍💻

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

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

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

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

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

```
Expand Down Expand Up @@ -172,3 +172,7 @@ $ dotnet run ApiContextSaveSample.cs

Please do not forget to set the `API_KEY` constant in `ApiContextSaveSample.cs` to your actual API key before running the
sample!

## Running tests
Information regarding the test cases can be found in the [README.md](./BunqSdk.Tests/README.md)
located in [test](./BunqSdk.Tests).

0 comments on commit b38b89c

Please sign in to comment.