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