Skip to content

API feedback: Make classes derive from interfaces so they're mockable in testing #268

Open
@amattie

Description

@amattie

5.0.0-rc4
api/taskrouter/v1/workspace

I'd like to test some logic that interacts with Twilio, but I'm not able to mock classes like WorkerResource since they either (a) don't derive from an interface or (b) don't have overridable methods (like GetDateStatusChanged). Option (a) is much preferred.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions