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
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PWREduCon768x460.png

Join us at PWR EduCon - A Power Platform Conference

Learn from the top Power BI, Power Apps, Power Automate & Power Virtual Agents experts!

Users online (2,088)