/// <summary> /// Returns the child activity for given event. /// </summary> /// <param name="activityEvent"></param> /// <returns></returns> protected IActivityItem Activity(WorkflowItemEvent activityEvent) { Ensure.NotNull(activityEvent, "@event"); return(_allWorkflowItems.ActivityOf(activityEvent)); }