Ejemplo n.º 1
0
 public static IProcessAction Create(ApprovalStatus status)
 {
     IProcessAction action = null;
     switch (status)
     {
         case ApprovalStatus.Agree:
             action = new AgreeProcessAction();
             break;
         case ApprovalStatus.Disagree:
             action = new DisagreeProcessAction();
             break;
         case ApprovalStatus.None:
             action = new NextProcessAction();
             break;
     }
     return action;
 }
Ejemplo n.º 2
0
        public static IProcessAction Create(ApprovalStatus status)
        {
            IProcessAction action = null;

            switch (status)
            {
            case ApprovalStatus.Agree:
                action = new AgreeProcessAction();
                break;

            case ApprovalStatus.Disagree:
                action = new DisagreeProcessAction();
                break;

            case ApprovalStatus.None:
                action = new NextProcessAction();
                break;
            }
            return(action);
        }