fake-xrm-easy
fake-xrm-easy copied to clipboard
Add Overload for RegisterPluginStep
Hello Jordi, we should add an overload to RegisterPluginStep where you can pass the plugin instance similar to ExecutePluginWith. This way we can test if a plugin fired or not in a test, or inject dependencies in our plugin instances.
Agree yep, I'll add this to the backlog :)
just wondering if you fixed this in v2
Good point @BetimBeja
It is not there, but rather than adding another overload, I would add another property to the PluginStepDefinition, like:
IPlugin PluginInstance { get; set; }
And validate that at least either the PluginInstance (custom instance with injected dependencies) or the PluginType (default constructor) name were set.