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  descriptionEquality = this.GetDescription() == newVenue.GetDescription();
         bool  locationEquality    = this.GetLocation() == newVenue.GetLocation();
         bool  capacityEquality    = this.GetCapacity() == newVenue.GetCapacity();
         return(idEquality && nameEquality && descriptionEquality && locationEquality && capacityEquality);
     }
 }