Skip to content

Make extension methods more testable  #46

@oliverheywood451

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.

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