Exemplo n.º 1
0
        public override bool Equals(System.Object otherClient)
        {
            if (!(otherClient is Client))
            {
                return(false);
            }
            else
            {
                Client newClient           = (Client)otherClient;
                bool   idEquality          = (this.GetId() == newClient.GetId());
                bool   nameEquality        = (this.GetName() == newClient.GetName());
                bool   phoneNumberEquality = (this.GetPhoneNumber() == newClient.GetPhoneNumber());
                bool   stylistIdEquality   = (this.GetStylistId() == newClient.GetStylistId());

                return(idEquality && nameEquality && phoneNumberEquality && stylistIdEquality);
            }
        }