Example #1
0
 public FirstSubProcess(string name, int id, DateTime created) : base(id, new ProcessElementEventProcessor())
 {
     Name    = name;
     Created = created;
     State   = ProcessElementState.NotStartedYet;
     ((ProcessElementEventProcessor)EventHandlerMap).InEntity = this;
 }
Example #2
0
 public ParamScenarioTest(string processName, int expectedStreamId, int expectedProcessId,
                          string expectedRunningService, DateTime expectedDateCreated,
                          DateTime expectedDateStarted, DateTime expectedDateStoped,
                          ProcessElementState expectedState)
 {
     ProcessName            = processName;
     ExpectedStreamId       = expectedStreamId;
     ExpectedProcessId      = expectedProcessId;
     ExpectedRunningService = expectedRunningService;
     ExpectedDateCreated    = expectedDateCreated;
     ExpectedDateStarted    = expectedDateStarted;
     ExpectedDateStoped     = expectedDateStoped;
     ExpectedState          = expectedState;
 }
Example #3
0
 private void StopProcess(DateTime dateStop)
 {
     Stop  = dateStop;
     State = ProcessElementState.Ended;
 }
Example #4
0
 private void StartProcess(string runningService, DateTime start)
 {
     Start          = start;
     RunningService = runningService;
     State          = ProcessElementState.Running;
 }