Beispiel #1
0
 private bool Equals(VocabularyDomain that)
 {
     return(new EqualsBuilder().Append(this.id, that.id).Append(
                this.Type, that.Type).Append(this.Id,
                                             that.Id).Append(this.BusinessName,
                                                             that.BusinessName).Append(this.Description,
                                                                                       that.Description).IsEquals());
 }
Beispiel #2
0
        /// <summary>
        /// Compare to.
        /// </summary>
        ///
        /// <param name="obj">the obj</param>
        /// <returns>the int</returns>
        public int CompareTo(Object obj)
        {
            VocabularyDomain that = (VocabularyDomain)obj;

            return(new CompareToBuilder().Append(this.Type, that.Type)
                   .Append(this.Id, that.Id).Append(
                       this.BusinessName, that.BusinessName).Append(
                       this.Description, that.Description)
                   .ToComparison());
        }