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
262 stars 182 forks source link

Add new Fake Message: RetrieveCurrentOrganizationRequest #529

Open ghost opened 3 years ago

ghost commented 3 years ago

Hi Jordi, I create new Fake Message RetrieveCurrentOrganizationRequest, which uses fake OrganizationUrl, Company and Organization. I just need your help to fix preprocessor directives, because RetrieveCurrentOrganizationRequest is supported by FAKE_XRM_EASY.2015 and higher. When I delete FAKE_XRM_EASY.2013 from preprocessor directives(1st line in commited file), whole code grayout so it will not be executed. (Image 1 - code greyouts without FAKE_XRM_EASY.2013) image

(Image 2 - code should be executed but it's not supported for FAKE_XRM_EASY.2013) image

BetimBeja commented 3 years ago

graying out is how it is supposed to be: image when you change context to 2016 for example image

jordimontana82 commented 3 years ago

Thanks for this, yeah, it's supposed to work like Betim said above, just pick the active project that will highlight the code within the desired preprocessor symbol