Exemplo n.º 1
0
 public bool Equals(Order other)
 {
     if (
         (!string.IsNullOrEmpty(MMSId) && (MMSId == other.MMSId)) ||
         (!string.IsNullOrEmpty(Id) && (Id == other.Id)) ||
         string.IsNullOrEmpty(MMSId) &&
         Price.AlmostEquals(other.Price) &&
         Amount.AlmostEquals(other.Amount) &&
         MarketSide == other.MarketSide)
     {
         return(true);
     }
     return(false);
 }