-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Access Token creation logic (#690)
* Install the Altinn.Common.AccessTokenClient package * Update Confluent.Kafka package * Fix an issue when retrieving data from the Register API. * Mock the IAccessTokenGenerator to use with unit tests * Add a new unit test to check the null response. * Cover two more conditions * Add a unit test to ensures that the GetPartyDetails method correctly handles the scenario where the access token is null or an empty string. * Add a test to ensure that the GetPartyDetails method correctly adds the PlatformAccessToken header when the access token is not empty, * Mock the JSON deserialization behavior * Code refactoring. Make the GetPartyDetails usable for only one set of registeration numbers. * Implement a new test to ensure that the RegisterClient constructor correctly handles the scenario where the HttpClient parameter is null * Remove the implementation of IHttpContextAccessor * Code refactoring * Update the GetPartyDetails method to make sure it handles invalid JSON responses gracefully by returning an empty list. * Remove a try catch block * Remove an extra async keyword * Remove a test that is already covered by the logic in the RegisterClient class. * Create a unit test that ensures the deserialization of PartyDetailsLookupResult returns null. * Update docs * Improve code readability and remove one unit test * Code refactoring * Remove a redundant test. * Remove unused case. * Fix a bug introduced in the previous commit. * Test retrieving data for organizations and persons using one request. * Remove a redundant test. * Change the name notification to notifications * Remove an unused using statement. * Remove the default values null
- Loading branch information
1 parent
440d8d2
commit 93f9375
Showing
7 changed files
with
291 additions
and
121 deletions.
There are no files selected for viewing
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 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
Oops, something went wrong.