Skip to content

Conversation

@Liteolika
Copy link
Contributor

This PR fixes #270.

New feature to simulate BankID API errors for development and testing.

PR Summary

Introduced functionality to simulate BankID API errors and added related documentation and tests.

  • bankid.md: Documented how to simulate BankID API errors using AddSimulatedBankIdApiError.
  • BankIdErrorSimulatedApiClientDecorator.cs: Added a decorator class to simulate errors from the BankID API.
  • IBankIdBuilderExtensions.cs: Added an extension method to integrate simulated API errors into the BankID API client.
  • BankIdErrorSimulatedAppApiClientDecorator_Tests.cs: Created tests for the error simulation decorator.
  • BankIdBuilder_Tests.cs: Added tests to ensure proper handling of simulated API errors in the service collection.

@elinohlsson elinohlsson added this to the 10.1.0 milestone Jan 16, 2025
@elinohlsson elinohlsson merged commit e992d00 into main Jan 17, 2025
19 checks passed
@elinohlsson elinohlsson deleted the 270-add-error-simulator-for-api branch January 17, 2025 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add error simulator for API

3 participants