Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="other"></param>
        /// <returns></returns>
        public bool Equals(Project other)
        {
            if (other == null)
            {
                return(false);
            }

            return(Id == other.Id &&
                   string.Equals(Identifier, other.Identifier, StringComparison.OrdinalIgnoreCase) &&
                   string.Equals(Description, other.Description, StringComparison.OrdinalIgnoreCase) &&
                   (Parent != null ? Parent.Equals(other.Parent) : other.Parent == null) &&
                   string.Equals(HomePage, other.HomePage, StringComparison.OrdinalIgnoreCase) &&
                   CreatedOn == other.CreatedOn &&
                   UpdatedOn == other.UpdatedOn &&
                   Status == other.Status &&
                   IsPublic == other.IsPublic &&
                   InheritMembers == other.InheritMembers &&
                   (Trackers != null ? Trackers.Equals <ProjectTracker>(other.Trackers) : other.Trackers == null) &&
                   (CustomFields != null ? CustomFields.Equals <IssueCustomField>(other.CustomFields) : other.CustomFields == null) &&
                   (IssueCategories != null ? IssueCategories.Equals <ProjectIssueCategory>(other.IssueCategories) : other.IssueCategories == null) &&
                   (EnabledModules != null ? EnabledModules.Equals <ProjectEnabledModule>(other.EnabledModules) : other.EnabledModules == null) &&
                   (TimeEntryActivities != null ? TimeEntryActivities.Equals <ProjectTimeEntryActivity>(other.TimeEntryActivities) : other.TimeEntryActivities == null) &&
                   (DefaultAssignee != null ? DefaultAssignee.Equals(other.DefaultAssignee) : other.DefaultAssignee == null) &&
                   (DefaultVersion != null ? DefaultVersion.Equals(other.DefaultVersion) : other.DefaultVersion == null));
        }
Esempio n. 2
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="other"></param>
        /// <returns></returns>
        public bool Equals(Project other)
        {
            if (other == null) return false;
            return (
                Id == other.Id
                && Identifier.Equals(other.Identifier)
                && Description.Equals(other.Description)
                && (Parent != null ? Parent.Equals(other.Parent) : other.Parent == null)
				&& (HomePage != null ? HomePage.Equals(other.HomePage) : other.HomePage == null)
                && CreatedOn == other.CreatedOn
                && UpdatedOn == other.UpdatedOn
                && Status == other.Status
                && IsPublic == other.IsPublic
                && InheritMembers == other.InheritMembers
                && (Trackers != null ? Trackers.Equals<ProjectTracker>(other.Trackers) : other.Trackers == null)
                && (CustomFields != null ? CustomFields.Equals<IssueCustomField>(other.CustomFields) : other.CustomFields == null)
                && (IssueCategories != null ? IssueCategories.Equals<ProjectIssueCategory>(other.IssueCategories) : other.IssueCategories == null)
                && (EnabledModules != null ? EnabledModules.Equals<ProjectEnabledModule>(other.EnabledModules) : other.EnabledModules == null)
            );
        }
Esempio n. 3
0
        public bool Equals(CustomField other)
        {
            if (other == null)
            {
                return(false);
            }

            return(Id == other.Id &&
                   IsFilter == other.IsFilter &&
                   IsRequired == other.IsRequired &&
                   Multiple == other.Multiple &&
                   Searchable == other.Searchable &&
                   Visible == other.Visible &&
                   CustomizedType.Equals(other.CustomizedType) &&
                   DefaultValue.Equals(other.DefaultValue) &&
                   FieldFormat.Equals(other.FieldFormat) &&
                   MaxLength == other.MaxLength &&
                   MinLength == other.MinLength &&
                   Name.Equals(other.Name) &&
                   Regexp.Equals(other.Regexp) &&
                   PossibleValues.Equals(other.PossibleValues) &&
                   Roles.Equals(other.Roles) &&
                   Trackers.Equals(other.Trackers));
        }
Esempio n. 4
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="other"></param>
        /// <returns></returns>
        public bool Equals(CustomField other)
        {
            if (other == null)
            {
                return(false);
            }

            return(Id == other.Id &&
                   IsFilter == other.IsFilter &&
                   IsRequired == other.IsRequired &&
                   Multiple == other.Multiple &&
                   Searchable == other.Searchable &&
                   Visible == other.Visible &&
                   string.Equals(CustomizedType, other.CustomizedType, StringComparison.OrdinalIgnoreCase) &&
                   string.Equals(DefaultValue, other.DefaultValue, StringComparison.OrdinalIgnoreCase) &&
                   string.Equals(FieldFormat, other.FieldFormat, StringComparison.OrdinalIgnoreCase) &&
                   MaxLength == other.MaxLength &&
                   MinLength == other.MinLength &&
                   string.Equals(Name, other.Name, StringComparison.OrdinalIgnoreCase) &&
                   string.Equals(Regexp, other.Regexp, StringComparison.OrdinalIgnoreCase) &&
                   PossibleValues.Equals(other.PossibleValues) &&
                   Roles.Equals(other.Roles) &&
                   Trackers.Equals(other.Trackers));
        }