Skip to content

Make extension methods more testable  #46

Description

@oliverheywood451

This stack overflow describes the situation pretty well.
https://stackoverflow.com/questions/2295960/mocking-extension-methods-with-moq

In our case the extension methods are ListAll() and ListByIDs()

Brought up by Crhistian - when you are writing tests for functions that use a ListAll function, mocking the IOrderCloudClient doesn't cut it, because it doesn't have that method.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions