Example #1
0
        public override bool Equals(object obj)
        {
            if (ReferenceEquals(null, obj))
            {
                return(false);
            }
            if (ReferenceEquals(this, obj))
            {
                return(true);
            }
            if (obj.GetType() != this.GetType())
            {
                return(false);
            }

            FiredEmployee other = (FiredEmployee)obj;

            return(FiredEmployeeId == other.FiredEmployeeId &&
                   EmployeeId == other.EmployeeId &&
                   DateOfDismissal.Equals(other.DateOfDismissal) &&
                   string.Equals(Reason, other.Reason) &&
                   Deleted == other.Deleted);
        }