public void Add(OrderDigest orderDigest) { if (_orderDigestList.Contains(orderDigest)) { throw new DuplicateOrderIdException($"{orderDigest.OrderId} already exist."); } _orderDigestList.Add(orderDigest); }
protected bool Equals(OrderDigest other) { return(base.Equals(other) && SellerAgentAddress.Equals(other.SellerAgentAddress) && Price.Equals(other.Price) && CombatPoint == other.CombatPoint && Level == other.Level && ItemId == other.ItemId && ItemCount == other.ItemCount); }