Mocking PnPContext using Xunit 2.9.2 and Moq 4.20.72 #1569
Unanswered
freddieontheweb
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am using PnP.SDK in one of my project to manage my sharepoint sites and I need to write unit tests around it.
I am able to mock context factory since there is an interface for it.
var _mockContextFactory = new Mock<IPnPContextFactory>();
I need to do test like that:
Can someone help me? Thanks in advice.
F.
Beta Was this translation helpful? Give feedback.
All reactions