Skip to content

Extract interface for ModuleClient, DeviceClient classes #2634

@fgheysels

Description

@fgheysels

I think it would be great if there would exist an IModuleClient and IDeviceClient interface, which would then be implemented by the ModuleClient and DeviceClient classes.
This would allow developers to easily test code / classes that have a dependency on those classes. Instead of directly injecting ModuleClient, one could inject IModuleClient and pass in a stub or mock in unit-tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    IoTSDKTracks all IoT SDK issues across the boardenhancementNew feature or request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions