cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Mocking ComponentFramework.Context<IInputs> in Tests

Has anyone successfully mocked ComponentFramework.Context<IInputs> in a test framework? I would like to extend my test coverage but am loath to actually create an instance of this huge object by hand.

1 REPLY 1
Anonymous
Not applicable

Answered my own question with this article.

Substitute.for<ComponentFramework.Context<IInputs>>()

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Users online (3,506)