public static TimeCardStatus getStatusByString(string status) { TimeCardStatus result = TimeCardStatus.waiting;; switch (status) { case "inProgress": result = TimeCardStatus.inProgress; break; case "badEstimated": result = TimeCardStatus.badEstimated; break; case "completed": result = TimeCardStatus.completed; break; case "waiting": result = TimeCardStatus.waiting; break; } return(result); }
public ImmutableStatusChainHandler(TimeCard timeCard, DateTime now) : base(timeCard, now) { TimeCardStatus = timeCard.Status; Status = timeCard.Status as WorkdayStatus; }