Пример #1
0
 public TutorTutoringSession(Tutor t, TutoringSession ts)
 {
     Ssn             = t.Ssn;
     Code            = ts.Code;
     StartTime       = ts.StartTime;
     EndTime         = ts.EndTime;
     Tutor           = t;
     TutoringSession = ts;
 }
Пример #2
0
        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);
        }
Пример #3
0
        public bool FullEquals(object obj)
        {
            TutoringSession ts = obj as TutoringSession;

            return(Equals(ts) && NumberOfParticipants == ts.NumberOfParticipants);
        }