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.
Reorganized and updated
using
directives inCore.cs
for better code organization. AddedInstantiateTemplateRequestHandler
toInitializeDB
method inCore.cs
to handleInstantiateTemplate
requests.Updated
XrmMockupShared.projitems
to includeInstantiateTemplateRequestHandler.cs
.Added new file
InstantiateTemplateRequestHandler.cs
defining theInstantiateTemplateRequestHandler
class, which handlesInstantiateTemplate
requests by creating anemail
entity and returning it in anEntityCollection
within theInstantiateTemplateResponse
. Added validation checks inExecute
method forTemplateId
,ObjectId
, andObjectType
. ThrowsFaultException
if any validation fails.Added tests for
InstantiateTemplateRequest
validation and response.