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
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (1,988)