Skip to content

Mocking the whole PnPContext? #1083

@plamber

Description

@plamber

Category

  • Feature request

Describe the feature

I followed the issue #948 since we have to write a couple of Unit Tests for our environment. We can already use the IPnPContext interface to mock a couple of items but I noticed that many interfaces or properties are not "Mockable".

I am just going to list a couple of examples.

Methods or properties not present in PnPContext

  • context.ExecuteAsync
  • context.Uri
  • GetSiteCollectionManager

Describe the solution you'd like

The interface should include all methods and properties available in PnPContext. This simplify the Mocking process when writing Unit Tests.

Metadata

Metadata

Assignees

Labels

area: model 📐Related to the core SDK modelsarea: test 🧪Improving test coverage and quality

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions