Skip to content

[Feature] Mocking OrganizationServiceContext.CreateQuery not possible because the class has no interface and the method isn't virtual. #75

Open
@BoutemineOualid

Description

@BoutemineOualid

Hi,

I am trying to write some unit tests for my services but I wasnt able to Mock the OrganizationServiceContext class using the Moq framework. Specifically, I was trying to mock the CreateQuery method but since it is not virtual and the class has no reusable interface, the framework wasn't able to mock it.

I was wondering if this is something you could consider for the upcoming release.

Thanks.

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