Exemplo n.º 1
0
        private CreateResponse HandleCreate(OrganizationRequest orgRequest, EntityReference userRef)
        {
            var request  = MakeRequest <CreateRequest>(orgRequest);
            var resp     = new CreateResponse();
            var settings = MockupExecutionContext.GetSettings(request);

            resp.Results.Add("id", dataMethods.Create(request.Target, userRef, settings.ServiceRole));
            resp.Results["Target"] = request.Target;
            return(resp);
        }