public void ActivityTypeToActionTypeConverter_ConvertToActionType_ConvertWorkflow_ExpectedWorkflowEnum() { //------------Execute Test--------------------------- enActionType actionType = ActivityTypeToActionTypeConverter.ConvertToActionType("Workflow"); //------------Assert Results------------------------- Assert.AreEqual(enActionType.Workflow, actionType); }
public void ActivityTypeToActionTypeConverter_ConvertToActionType_ConvertDbService_ExpectedDbServiceEnum() { //------------Execute Test--------------------------- enActionType actionType = ActivityTypeToActionTypeConverter.ConvertToActionType("DbService"); //------------Assert Results------------------------- Assert.AreEqual(enActionType.InvokeStoredProc, actionType); }
public void ActivityTypeToActionTypeConverter_ConvertToActionType_ConvertPluginService_ExpectedPluginServiceEnum() { //------------Execute Test--------------------------- enActionType actionType = ActivityTypeToActionTypeConverter.ConvertToActionType("PluginService"); //------------Assert Results------------------------- Assert.AreEqual(enActionType.Plugin, actionType); }
protected XElement CreateXml(enActionType actionType, string actionName, Resource source, RecordsetList recordsets, params object[] actionContent) { VerifyArgument.IsNotNull("source", source); var action = new XElement("Action", new XAttribute("Name", actionName), new XAttribute("Type", actionType), new XAttribute("SourceID", source.ResourceID), new XAttribute("SourceName", source.ResourceName ?? string.Empty), new XAttribute("ExecuteAction", Method.ExecuteAction ?? string.Empty), new XAttribute("SourceMethod", Method.Name ?? (ResourceName ?? string.Empty)) // Required for legacy!! ); if (actionContent != null) { action.Add(actionContent); } var inputs = CreateInputsXml(Method); var outputs = CreateOutputsXml(recordsets); action.Add(inputs); action.Add(outputs); var result = base.ToXml(); result.AddFirst( new XElement("Actions", action), new XElement("AuthorRoles"), new XElement("Comment"), new XElement("Tags"), new XElement("HelpLink"), new XElement("UnitTestTargetWorkflowService"), new XElement("BizRule"), new XElement("WorkflowActivityDef"), new XElement("XamlDefinition"), new XElement("DataList"), new XElement("TypeOf", actionType) ); return(result); }
/// <summary> /// Used to evaluate an expression against a given datalist /// </summary> /// <param name="curDlid">The cur DL ID.</param> /// <param name="typeOf">The type of evaluation.</param> /// <param name="expression">The expression.</param> /// <param name="toRoot"></param> /// <param name="errors"></param> /// <returns></returns> public IBinaryDataListEntry Evaluate(Guid curDlid, enActionType typeOf, string expression, bool toRoot, out ErrorResultTO errors) { return(_svrCompiler.Evaluate(null, curDlid, typeOf, expression, out errors, toRoot)); }
protected XElement CreateXml(enActionType actionType, Resource source, RecordsetList recordsets, params object[] actionContent) { return(CreateXml(actionType, ResourceName ?? string.Empty, source, recordsets, actionContent)); }