public bool Equals(TestResource other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } if (!DateProperty.Equals(other.DateProperty)) { return(false); } if (!DateOffsetProperty.Equals(other.DateOffsetProperty) && DateOffsetProperty != DateTimeOffset.MinValue && other.DateOffsetProperty != DateTimeOffset.MinValue) { return(false); } if (!BoolProperty.Equals(other.BoolProperty)) { return(false); } if (IntProperty != other.IntProperty) { return(false); } if (!string.Equals(StringProperty, other.StringProperty)) { return(false); } if (ReferenceEquals(Links, other.Links)) { return(true); } if (ReferenceEquals(null, other.Links)) { return(false); } if (ReferenceEquals(null, Links)) { return(false); } if (!Links.Equals(other.Links)) { return(false); } return(true); }
public bool Equals(TestRequest other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(DateProperty.Equals(other.DateProperty) && DateOffsetProperty.Equals(other.DateOffsetProperty) && BoolProperty.Equals(other.BoolProperty) && IntProperty == other.IntProperty && string.Equals(StringProperty, other.StringProperty)); }