jordimontana82 / fake-xrm-easy

The testing framework for Dynamics CRM and Dynamics 365 which runs on an In-Memory context and deals with mocks or fakes for you
https://dynamicsvalue.com/get-started/overview?source=git
Other
263 stars 182 forks source link

`type argument 'FakeXrmEasyUpdatePluginCrash.MyPlugin' violates the constraint of type parameter 'T'.` #604

Closed skfd closed 1 year ago

skfd commented 1 year ago

Describe the bug Pipeline update message test crashes with violates the constraint of type parameter 'T'. message. Works OK for create message.

To Reproduce repo with repro

FakeXrmEasy and Dynamics 365 / CRM version FakeXrmEasy 2.3.0

jordimontana82 commented 1 year ago

Hi @skfd from London!

I saw you're using a plugin with secure / insecure configs. Can you try with a parameterless constructor to confirm please?

I've raised this issue to keep track of it anyway:

https://github.com/DynamicsValue/fake-xrm-easy/issues/103

We use that other repo for the new versions, so I'll close this issue and we can follow it up from that other issue please?

Thank you!

skfd commented 1 year ago

omg, that actually fixed an issue! thanks! I'm not actually using secure/insecure configs in my current project, but pac plugin init template has them by default.

jordimontana82 commented 1 year ago

Glad FakeXrmEasy is able to help spotting these issues... ! :smile:

I'll keep the new issue anyway cause it'll be handy, I'm surprised it wasn't flagged before!