Ejemplo n.º 1
0
                public override bool Equals(object obj)
                {
                    StudyEventAggregateContingentsHelperKey o = obj as StudyEventAggregateContingentsHelperKey;

                    if (o == null)
                    {
                        return(false);
                    }
                    IEnumerable <Location> tloc = this.EventLocations.Select(el => el.Location);
                    IEnumerable <Location> oloc = o.EventLocations.Select(el => el.Location);

                    return(this.StudyEventsTimeTableKindCode == o.StudyEventsTimeTableKindCode &&
                           DateTime.Equals(this.Start, o.Start) &&
                           DateTime.Equals(this.End, o.End) &&
                           string.Equals(this.Subject, o.Subject) &&
                           tloc.Count() == oloc.Count() && !tloc.Except(oloc).Any());
                }
Ejemplo n.º 2
0
 public StudyEventAggregateContingentsHelper(TimeEventAppointment appointment)
 {
     Key         = new StudyEventAggregateContingentsHelperKey(appointment);
     Appointment = appointment;
 }