Hi, I’ve looked through the documentation looking for a recommended way of unit testing/ integration testing Commands but couldn’t find any.
Can you please point me to some examples or recommend a way of doing so ?
Thanks
Hi, I’ve looked through the documentation looking for a recommended way of unit testing/ integration testing Commands but couldn’t find any.
Can you please point me to some examples or recommend a way of doing so ?
Thanks
The benefit of commands are that they’re isolated units of logic where you should be able to inject its dependencies in its constructor before executing it.
Alternatively if you want to execute them from the CommandsFeature plugin, checkout CommandsTests.cs