public FirstSubProcess(string name, int id, DateTime created) : base(id, new ProcessElementEventProcessor()) { Name = name; Created = created; State = ProcessElementState.NotStartedYet; ((ProcessElementEventProcessor)EventHandlerMap).InEntity = this; }
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; }
private void StopProcess(DateTime dateStop) { Stop = dateStop; State = ProcessElementState.Ended; }
private void StartProcess(string runningService, DateTime start) { Start = start; RunningService = runningService; State = ProcessElementState.Running; }