/// <summary> /// Determines whether this instance has errors. /// </summary> /// <returns> /// <c>true</c> if this instance has errors; otherwise, <c>false</c>. /// </returns> public bool HasErrors() { int amountErrors = ExecutionLog.Where(e => e != null && e.Type == TypeItemLog.Error).Count(); return(amountErrors > 0); }