Exemplo n.º 1
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  priceEquality = (this.GetPrice()) == newVenue.GetPrice();

                return(idEquality && nameEquality && priceEquality);
            }
        }