Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Unit Testing using MS Fakes

(0) ShareShare
ReportReport
Posted on by 247

Hi,

I have written a plugin for Dynamics 365 online. There is a relationship between Parent and Child entity as (1:N). The parent entity is having a subgrid of child records. So the plugin executes when there is any update of lookup value (parent) in the child record.

The functionality of the plugin is when there is an update of the child record lookup value, it calculates the PreImage and PostImage and according to that it modifies the attribute in the parent entity through lookup value. The plugin is working fine. But I have to write a Unit Test using MS Fakes (not fakexrmeasy) which will test this plugin. I am new to this requirement. Please help me to consider the functionality of the plugin and write unit test.

Similarly if there is a Delete then it will again consider the lookup field for the parent value and according to that modifies the parent attribute value.

Thanks

AR

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,329 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans