Exemplo n.º 1
0
 public void Add(OrderDigest orderDigest)
 {
     if (_orderDigestList.Contains(orderDigest))
     {
         throw new DuplicateOrderIdException($"{orderDigest.OrderId} already exist.");
     }
     _orderDigestList.Add(orderDigest);
 }
Exemplo n.º 2
0
 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);
 }