You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just to clarify, are you asking for this class to be mockable in the context of unit tests in your project that uses this SDK?
If so, I'd recommend adding an IQuery interface for the provisioningServiceClient.CreateEnrollmentGroupQuery and provisioningServiceClient.CreateEnrollmentGroupRegistrationStateQuery and provisioningServiceClient.CreateIndividualEnrollmentQuery to return instead of the concrete class Query they currently return. The interface will need to match the Query so it would look something like
Once that is checked into this repo, you should be able to make your provisioning service client return a mocked IQuery object that you have full control over.
https://github.com/Azure/azure-iot-sdk-csharp/blob/main/provisioning/service/src/Config/QueryResult.cs
The QueryResponseClass needs to be modifiable to allow testing of applications that query the DPS.
I'm happy to do the work, just looking for guidance on how you would like to proceed.
The text was updated successfully, but these errors were encountered: