public CustomOptionObject TransformToCustomOptionObject(OptionObject optionObject)
 {
     var CustomOptionObject = new CustomOptionObject();
     CustomOptionObject.EntityID = optionObject.EntityID;
     CustomOptionObject.EpisodeNumber = optionObject.EpisodeNumber;
     CustomOptionObject.ErrorCode = ConvertToEnum(optionObject.ErrorCode);
     CustomOptionObject.ErrorMesg = optionObject.ErrorMesg;
     CustomOptionObject.Facility = optionObject.Facility;
     CustomOptionObject.OptionId = optionObject.OptionId;
     CustomOptionObject.OptionStaffId = optionObject.OptionStaffId;
     CustomOptionObject.OptionUserId = optionObject.OptionUserId;
     CustomOptionObject.SystemCode = optionObject.SystemCode;
     CustomOptionObject.Forms = TransformForms(optionObject.Forms);
     return CustomOptionObject;
 }
 public OptionObject TransformToOptionObject(CustomOptionObject customOptionObject)
 {
     var optionObject = new OptionObject();
     optionObject.EntityID = customOptionObject.EntityID;
     optionObject.EpisodeNumber = customOptionObject.EpisodeNumber;
     optionObject.ErrorCode = (double)customOptionObject.ErrorCode;
     optionObject.ErrorMesg = customOptionObject.ErrorMesg;
     optionObject.Facility = customOptionObject.Facility;
     optionObject.OptionId = customOptionObject.OptionId;
     optionObject.OptionStaffId = customOptionObject.OptionStaffId;
     optionObject.OptionUserId = customOptionObject.OptionUserId;
     optionObject.SystemCode = customOptionObject.SystemCode;
     optionObject.Forms = customOptionObject.Forms.Any() ? TransformCustomForms(customOptionObject.Forms) : new List<FormObject>();
     return optionObject;
 }
 private void AddFormObjects(OptionObject optionObject, int NumberOfForms)
 {
     for (int i = 0; i < NumberOfForms; i++)
     {
         optionObject.Forms.Add(CreateFormObject());
     }
 }
 private OptionObject MockBasicOptionObject()
 {
     var optionObject = new OptionObject();
     optionObject.EntityID = "1";
     optionObject.EpisodeNumber = 1;
     optionObject.ErrorCode = 2;
     optionObject.ErrorMesg = "2";
     optionObject.Facility = "3";
     optionObject.OptionId = "4";
     optionObject.OptionStaffId = "5";
     optionObject.OptionUserId = "6";
     optionObject.SystemCode = "7";
     return optionObject;
 }
Ejemplo n.º 5
0
 protected BaseScriptLink(OptionObject optionObject)
 {
     this.OptionObject = optionObject;
     this.OptionObjectTransform = new OptionObjectTransform();
 }
 public OptionObject RunScript(OptionObject OptionObject, string ScriptName)
 {
     var script = FactoryScriptName.GetScriptName(ScriptName);
     script.PerformAction();
     return OptionObject;
 }