Example #1
0
 public override bool Equals(System.Object randomVenue)
 {
     if (!(randomVenue is Venue))
     {
         return(false);
     }
     else
     {
         Venue newVenue     = (Venue)randomVenue;
         bool  idEquality   = (this.GetId() == newVenue.GetId());
         bool  nameEquality = (this.GetName() == newVenue.GetName());
         return(idEquality && nameEquality);
     }
 }
Example #2
0
        public override bool Equals(System.Object otherVenue)
        {
            if (!(otherVenue is Venue))
            {
                return(false);
            }
            else
            {
                Venue newVenue          = (Venue)otherVenue;
                bool  idEquality        = this.GetId() == newVenue.GetId();
                bool  nameEquality      = this.GetName() == newVenue.GetName();
                bool  contactEquality   = this.GetContact() == newVenue.GetContact();
                bool  addressEquality   = this.GetAddress() == newVenue.GetAddress();
                bool  eventDateEquality = this.GetEventDate() == newVenue.GetEventDate();

                return(idEquality && nameEquality && eventDateEquality && contactEquality && addressEquality);
            }
        }