public static bool IsEqualToPositionParty(IBookParty position, IBookIndex element) { return(element.ContractIndex().Equals(position.ContractIndex()) && element.PositionIndex().Equals(position.PositionIndex())); }
public static bool IsEqualToContractParty(ICodeIndex contract, IBookIndex element) { return(element.ContractIndex().Equals(contract)); }