Skip to content

Method CloneAsync of PnPContext - Return the interface instead the real class #1704

@Marko97IT

Description

@Marko97IT

Category

  • Feature request

Describe the feature

Writing unit tests with PnPContext is an ordeal. The PnPContext class has the IPnPContext interface, but it's useless if it's not fully utilized. To make unit testing easier, it would be a good idea to return IPnPContext instead of the actual PnPContext class in the CloneAsync method (and the non-async variant).

Describe the solution you'd like

Return the interface instead the real class

Additional context

Make unit testing easy as it is a mandatory requirement for most companies.

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