-
I know that this request isn't implemented in fakeXrmEasy, and I can see why not - it would have to be able to retrieve the definition of the rollup field from the metadata and then perform the rollup before returning the result. However, I'm wondering if I could implemenent a local mock which would at least allow the response to be called and return a mocked result. I'm writing tests for a plugin which calls CalculateRollupFieldRequest - it doesn't really matter in the test what the result is, it just calls it so the field is updated when the plugin completes its work. At the moment my tests are failing because CalculateRollupFieldRequest isn't implemented - but as my plugin doesn't care what the result is, I wonder if I can get round this somehow. I could of course just use a local copy of FakeXrmEasy which mocks the request, but that makes ongoing maintenance harder. Thanks as ever for any ideas... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello @bwmodular , you can use AddGenericFakeMessageExecutor to register the custom CalculateRollupFieldRequestExecutor |
Beta Was this translation helpful? Give feedback.
Hello @bwmodular , you can use AddGenericFakeMessageExecutor to register the custom CalculateRollupFieldRequestExecutor