Ejemplo n.º 1
0
 public bool Equals(Pizza other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Id.Equals(other.Id) &&
            string.Equals(Name, other.Name) &&
            string.Equals(Description, other.Description) &&
            BasePrice.Equals(other.BasePrice) &&
            Toppings.OrderlessSequenceEquals(other.Toppings));
 }