Trulioo / sdk-csharp-v3

Trulioo SDK v3 for C#
Apache License 2.0
0 stars 5 forks source link

Integration Tests with Trulioo SDK #22

Open flavio-cadete-cko opened 2 months ago

flavio-cadete-cko commented 2 months ago

Hi Trulioo Dev team, Which approach do you advise us to run integration tests? Goal: call our simulator (with pre-defined results) and not Trulioo API.

Previously we were injecting a different Message Handler when simulator flag was enabled, but new SDK v3 service doesn't receive HttpClient/Factory.


Also, do we need to use GZipDecompressionHandler if we only use the verification client/endpoint?

jason-attai-trulioo commented 1 month ago

Hi Flavio,

We put a "MockedIdvVerificationTest" here that shows how to mock the client responses using a VerificationHandler.

Is this what you were hoping to achieve with your simulator? Please let us know if you'd like more information about how to fake the results.

The GZipDecompressionHandler is only used to handle the processing of PDF documents so you don't need it if you aren't downloading documents.

Regards, Jason.