Esempio 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;
 }
Esempio 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);
        }