Ejemplo n.º 1
0
        public bool Equals(Orders other)
        {
            if (ReferenceEquals(other, null))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(OrderID.Equals(other.OrderID));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Returns true if SalesOrderResponse instances are equal
        /// </summary>
        /// <param name="other">Instance of SalesOrderResponse to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(SalesOrderResponse other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     OrderID == other.OrderID ||
                     OrderID != null &&
                     OrderID.Equals(other.OrderID)
                     ) &&
                 (
                     Message == other.Message ||
                     Message != null &&
                     Message.Equals(other.Message)
                 ));
        }
Ejemplo n.º 3
0
        public override bool Equals(object obj)
        {
            ProductionOrder productionOrder = (ProductionOrder)obj;

            return(OrderID.Equals(productionOrder.OrderID));
        }
Ejemplo n.º 4
0
        public override bool Equals(object obj)
        {
            Order order = (Order)obj;

            return(OrderID.Equals(order.OrderID));
        }