Beispiel #1
0
 public Transition(Event ev, TimecardStatus status)
 {
     // check the transition status
     // it cannot back to the draft state
     if (status != TimecardStatus.Draft)
     {
         this.OccurredAt     = DateTime.UtcNow;
         this.TransitionedTo = status;
         this.Event          = ev;
     }
 }
Beispiel #2
0
 public Transition(Event ev, TimecardStatus status)
 {
     this.OccurredAt     = DateTime.UtcNow;
     this.TransitionedTo = status;
     this.Event          = ev;
 }