public TutorTutoringSession(Tutor t, TutoringSession ts) { Ssn = t.Ssn; Code = ts.Code; StartTime = ts.StartTime; EndTime = ts.EndTime; Tutor = t; TutoringSession = ts; }
public override bool Equals(object obj) { TutoringSession ts = obj as TutoringSession; if (ts == null) { return(false); } return(Code == ts.Code && StartTime == ts.StartTime && EndTime == ts.EndTime); }
public bool FullEquals(object obj) { TutoringSession ts = obj as TutoringSession; return(Equals(ts) && NumberOfParticipants == ts.NumberOfParticipants); }