public override bool Equals(object other) { var otherAction = other as ContinueWorkflowAction; if (otherAction == null) { return(false); } return(_completedWorkflowItem.Equals(otherAction._completedWorkflowItem)); }
private void ValidateJump() { if (_jumpedItem == null) { return; } if (_triggeringItem.Equals(_jumpedItem)) { return; } var triggeringItemBranches = _triggeringItem.ParentBranches().Concat(_triggeringItem.ChildBranches()); if (!triggeringItemBranches.Any(b => b.Has(_jumpedItem))) { throw new OutOfBranchJumpException(string.Format(Resources.Invalid_jump, _jumpedItem, _triggeringItem)); } }
private bool Equals(ScheduleWorkflowItemAction other) { return(_workflowItem.Equals(other._workflowItem)); }