Exemplo n.º 1
0
 public void CopyFrom(AppointmentRequest suggestedAppointmentRequest)
 {
     Shop            = suggestedAppointmentRequest.Shop;
     StartDateTime   = suggestedAppointmentRequest.StartDateTime;
     RequestedBarber = suggestedAppointmentRequest.RequestedBarber;
     Service         = suggestedAppointmentRequest.Service;
 }
Exemplo n.º 2
0
        public override bool Equals(object obj)
        {
            if (obj.GetType() != this.GetType())
            {
                return(false);
            }

            BarberService other = (BarberService)obj;

            return(string.Equals(other.DisplayName, DisplayName, StringComparison.OrdinalIgnoreCase));
        }