delegateas / XrmMockup

Engine which simulates your exact Dynamics 365/CRM instance locally including all of it's logic!
Other
71 stars 29 forks source link

Implemented InstantiateTemplateRequest #243

Closed nedergaardcloud closed 1 month ago

nedergaardcloud commented 1 month ago

Reorganized and updated using directives in Core.cs for better code organization. Added InstantiateTemplateRequestHandler to InitializeDB method in Core.cs to handle InstantiateTemplate requests.

Updated XrmMockupShared.projitems to include InstantiateTemplateRequestHandler.cs.

Added new file InstantiateTemplateRequestHandler.cs defining the InstantiateTemplateRequestHandler class, which handles InstantiateTemplate requests by creating an email entity and returning it in an EntityCollection within the InstantiateTemplateResponse. Added validation checks in Execute method for TemplateId, ObjectId, and ObjectType. Throws FaultException if any validation fails.

Added tests for InstantiateTemplateRequest validation and response.