Example #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = TicketID;
         hashCode = (hashCode * 397) ^ OffSLADurationHours.GetHashCode();
         hashCode = (hashCode * 397) ^ OffSiteDurationHours.GetHashCode();
         hashCode = (hashCode * 397) ^ OnSLADurationHours.GetHashCode();
         hashCode = (hashCode * 397) ^ OnSiteDurationHours.GetHashCode();
         hashCode = (hashCode * 397) ^ TotalDurationHours.GetHashCode();
         return(hashCode);
     }
 }
Example #2
0
 private bool Equals(IDuration other)
 {
     return(TicketID == other.TicketID && OffSLADurationHours.Equals(other.OffSLADurationHours) && OffSiteDurationHours.Equals(other.OffSiteDurationHours) &&
            OnSLADurationHours.Equals(other.OnSLADurationHours) && OnSiteDurationHours.Equals(other.OnSiteDurationHours) && TotalDurationHours.Equals(other.TotalDurationHours));
 }