Skip to content

Commit feba57e

Browse files
committed
Apply code formatting
1 parent 2d3bb6a commit feba57e

File tree

88 files changed

+306
-201
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+306
-201
lines changed

README.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,19 @@
44

55
# NordigenApiClient
66

7-
This library provides a .NET client for the [GoCardless Bank Account Data API](https://gocardless.com/bank-account-data/) (formerly Nordigen API). The following API endpoints are supported:
7+
This library provides a .NET client for
8+
the [GoCardless Bank Account Data API](https://gocardless.com/bank-account-data/) (formerly Nordigen API). The following
9+
API endpoints are supported:
810

911
- Token
1012
- Institutions
1113
- Agreements
1214
- Requisitions
1315
- Accounts
1416

15-
You can get started with the Quickstart Guide below or take a look at the [full documentation](https://robintty.github.io/NordigenApiClient/). You can find the nuget package [here](https://www.nuget.org/packages/RobinTTY.NordigenApiClient).
17+
You can get started with the Quickstart Guide below or take a look at
18+
the [full documentation](https://robintty.github.io/NordigenApiClient/). You can find the nuget
19+
package [here](https://www.nuget.org/packages/RobinTTY.NordigenApiClient).
1620

1721
## Quickstart Guide
1822

@@ -61,11 +65,13 @@ You can get started with the Quickstart Guide below or take a look at the [full
6165
Console.WriteLine($"Requisition couldn't be created: {requisitionResponse.Error.Summary}");
6266
```
6367

64-
5. You will now need to accept the end user agreement by following the authentication link you got in the last step. The authentication flow will roughly look like this:
68+
5. You will now need to accept the end user agreement by following the authentication link you got in the last step. The
69+
authentication flow will roughly look like this:
6570

6671
![authentication-flow](docs/static/img/authentication_flow.png)
6772

68-
6. Now that you have accepted the agreement we once again need to retrieve the requisition we created in step 4. This time the response will include the accounts you are now able to access.
73+
6. Now that you have accepted the agreement we once again need to retrieve the requisition we created in step 4. This
74+
time the response will include the accounts you are now able to access.
6975

7076
```cs
7177
var requisitionId = "your-requisition-id";
@@ -79,7 +85,8 @@ You can get started with the Quickstart Guide below or take a look at the [full
7985
Console.WriteLine($"Accounts couldn't be retrieved: {accountsResponse.Error.Summary}");
8086
```
8187

82-
7. Now you can retrieve details about your bank account and the balances/transactions using the account ID(s) we just acquired:
88+
7. Now you can retrieve details about your bank account and the balances/transactions using the account ID(s) we just
89+
acquired:
8390

8491
```cs
8592
var accountId = "your-account-id";
@@ -110,4 +117,6 @@ You can get started with the Quickstart Guide below or take a look at the [full
110117
});
111118
```
112119

113-
That's it! You are now able to retrieve the account details, balances and transactions of your bank account. If you wanna learn more about this library please refer to the [full documentation](https://robintty.github.io/NordigenApiClient/).
120+
That's it! You are now able to retrieve the account details, balances and transactions of your bank account. If you
121+
wanna learn more about this library please refer to
122+
the [full documentation](https://robintty.github.io/NordigenApiClient/).

src/RobinTTY.NordigenApiClient.ExampleApplication/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@
7272
Console.WriteLine($"Remittance: {transaction.RemittanceInformationUnstructured}");
7373
Console.WriteLine($"Booking date:{transaction.ValueDate}");
7474
Console.WriteLine($"Amount: {transactionAmount.Amount} {transactionAmount.Currency}");
75-
});
75+
});

src/RobinTTY.NordigenApiClient.Tests/AuthenticationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ public void CheckForTokenExpiry()
7575
Assert.That(token.IsExpired(diffInvalid), Is.True);
7676
});
7777
}
78-
}
78+
}

src/RobinTTY.NordigenApiClient.Tests/EnumDescriptionConverterTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ public void DeserializeEnum<T>(string descriptor, T expectedDeserializedValue)
6666
var enumValue = JsonSerializer.Deserialize<T>($"\"{descriptor}\"");
6767
Assert.That(enumValue, Is.EqualTo(expectedDeserializedValue));
6868
}
69-
}
69+
}

src/RobinTTY.NordigenApiClient.Tests/LiveApi/CredentialTests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ public void Setup()
1717
#region RequestsWithSuccessfulResponse
1818

1919
/// <summary>
20-
/// Tests that <see cref="NordigenClient.JsonWebTokenPair" /> is populated after the first authenticated request is made.
20+
/// Tests that <see cref="NordigenClient.JsonWebTokenPair" /> is populated after the first authenticated request is
21+
/// made.
2122
/// </summary>
2223
[Test]
2324
public async Task CheckValidTokensAfterRequest()
@@ -105,4 +106,4 @@ public async Task ExecuteRequestWithUnauthorizedIp()
105106
}
106107

107108
#endregion
108-
}
109+
}

src/RobinTTY.NordigenApiClient.Tests/LiveApi/Endpoints/AccountsEndpointTests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,8 @@ public async Task GetTransactionRangeInFuture()
210210
}
211211

212212
/// <summary>
213-
/// Tests the retrieval of transactions within a specific time frame where the date range is incorrect, since the endDate is before the startDate. This should throw an exception.
213+
/// Tests the retrieval of transactions within a specific time frame where the date range is incorrect, since the
214+
/// endDate is before the startDate. This should throw an exception.
214215
/// </summary>
215216
[Test]
216217
public void GetTransactionRangeWithIncorrectRange()
@@ -237,4 +238,4 @@ await _apiClient.AccountsEndpoint.GetTransactions(_accountId, DateOnly.FromDateT
237238
}
238239

239240
#endregion
240-
}
241+
}

src/RobinTTY.NordigenApiClient.Tests/LiveApi/Endpoints/AgreementsEndpointTests.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ await _apiClient.AgreementsEndpoint.CreateAgreement(null!, uint.MaxValue, uint.M
201201
}
202202

203203
/// <summary>
204-
/// Tests the creation of an end user agreement with invalid accessValidForDays and maxHistoricalDays for that particular institution.
204+
/// Tests the creation of an end user agreement with invalid accessValidForDays and maxHistoricalDays for that
205+
/// particular institution.
205206
/// </summary>
206207
[Test]
207208
public async Task CreateAgreementWithInvalidArgumentsForInstitution()
@@ -237,11 +238,12 @@ await _apiClient.AgreementsEndpoint.CreateAgreement("PKO_BPKOPLPW",
237238

238239
Assert.That(response.Error!.AccessScopeError!.Detail,
239240
Is.EqualTo("For this institution the following scopes are required together: ['details', 'balances']"));
240-
Assert.That(response.Error!.AccessScopeError.Summary, Is.EqualTo("Institution access scope dependencies error"));
241+
Assert.That(response.Error!.AccessScopeError.Summary,
242+
Is.EqualTo("Institution access scope dependencies error"));
241243

242244
Assert.That(new[] {response.Error!.InstitutionIdError, response.Error!.AgreementError}, Has.All.Null);
243245
});
244246
}
245247

246248
#endregion
247-
}
249+
}

src/RobinTTY.NordigenApiClient.Tests/LiveApi/Endpoints/InstitutionsEndpointTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,4 +144,4 @@ public async Task GetNonExistingInstitution()
144144
}
145145

146146
#endregion
147-
}
147+
}

src/RobinTTY.NordigenApiClient.Tests/LiveApi/Endpoints/RequisitionsEndpointTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,4 +208,4 @@ await _apiClient.RequisitionsEndpoint.CreateRequisition("", redirect, agreementI
208208
}
209209

210210
#endregion
211-
}
211+
}

src/RobinTTY.NordigenApiClient.Tests/LiveApi/Endpoints/TokenEndpointTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ public async Task ReuseExpiredToken()
4848
}
4949

5050
/// <summary>
51-
/// Tests whether the <see cref="NordigenClient.TokenPairUpdated"/> event is raised when the token pair is updated
52-
/// automatically by the client itself.
51+
/// Tests whether the <see cref="NordigenClient.TokenPairUpdated" /> event is raised when the token pair is updated
52+
/// automatically by the client itself.
5353
/// </summary>
5454
[Test]
5555
public async Task TokenPairUpdateIsRaisedOnInternalUpdate()
@@ -68,10 +68,10 @@ public async Task TokenPairUpdateIsRaisedOnInternalUpdate()
6868
Assert.That(eventArgs.JsonWebTokenPair.RefreshToken.EncodedToken, Is.Not.Empty);
6969
});
7070
}
71-
71+
7272
/// <summary>
73-
/// Tests whether the <see cref="NordigenClient.TokenPairUpdated"/> event is raised when the token pair is updated
74-
/// by the user.
73+
/// Tests whether the <see cref="NordigenClient.TokenPairUpdated" /> event is raised when the token pair is updated
74+
/// by the user.
7575
/// </summary>
7676
[Test]
7777
public void TokenPairUpdateIsRaisedOnManualUpdate()
@@ -117,4 +117,4 @@ public async Task GetTokenWithInvalidCredentials()
117117
}
118118

119119
#endregion
120-
}
120+
}

0 commit comments

Comments
 (0)