generated from data-altinn-no/plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Change Singleton to Transient * Update account details model Change to WhenAll for fetching account details * Remove uneccessary properties from bank models Add log text that explains which field went wrong when serializing * Refactor and enhance banking service and tests - Update `BankClient_v2.cs` to adjust JSON properties and make `CreditDebitIndicator` nullable. - Add `AccountExtensions.cs` with error logging method. - Add `HasErrors` property to `AccountV2` in `BankResponse.cs`. - Enhance `GetAccountDetailsV2` in `BankService.cs` for better error handling and logging. - Update `Altinn.Dan.Plugin.Banking.Test.csproj` to target `net8.0`, add `FakeItEasy`, and reference `Altinn.Dan.Plugin.Banking`. - Add `FakeableHttpMessageHandler.cs` for handling HTTP requests in tests and generating certificates. - Add `BankServiceTests.cs` with comprehensive unit tests for `BankService`. - Remove obsolete `UnitTest1.cs`. * Fix failed tests * Nullable enabled Remove all required and add back some Remove roles Remove unused extension Remove unused usings Add tests * Fix property references a bit after introducing nullable enable * Fix balances
- Loading branch information
Showing
6 changed files
with
218 additions
and
518 deletions.
There are no files selected for viewing
559 changes: 133 additions & 426 deletions
559
src/Altinn.Dan.Plugin.Banking/Clients/V2/BankClient_v2.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.