예제 #1
0
        public override bool Equals(object other)
        {
            if (other == null || other.GetType() != typeof(Expectations))
            {
                return(false);
            }

            Expectations otherExpectations = (Expectations)other;

            return(Summary.Equals(otherExpectations.Summary) &&
                   Description.Equals(otherExpectations.Description) &&
                   CompletedBy.Equals(CompletedBy) && Steps.Equals(otherExpectations.Steps));
        }
예제 #2
0
        public string ToQueryString()
        {
            string returnString = "(";

            returnString += "'" + ParentId.ToString() + "', ";                                  // 1
            returnString += "'" + Title + "', ";                                                // 2
            returnString += "'" + ShortDescription + "', ";                                     // 3
            returnString += "'" + DetailedDescription + "', ";                                  // 4
            returnString += "'" + ParentProject.ToString() + "', ";                             // 5
            returnString += "'" + DateCreated.ToShortDateString() + "', ";                      // 6
            returnString += "'" + CreatedBy.ToString() + "', ";                                 // 7
            returnString += "'" + DateCompleted.ToShortDateString() + "', ";                    // 8
            returnString += "'" + CompletedBy.ToString() + "', ";                               // 9
            returnString += "'" + DeadLine.ToShortDateString() + "', ";                         //10
            returnString += "'" + Status + "'";                                                 //11

            return(returnString += ")");
        }         // End of ToQueryString()
예제 #3
0
 public override int GetHashCode()
 {
     return(Summary.GetHashCode()
            + (Description.GetHashCode()
               + (CompletedBy.GetHashCode() + Steps.GetHashCode())));
 }