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