public bool CorrespondsTo(InterestRateCondition condition) { return(condition != null && Kind == condition.Kind && Currencies.Count() == condition.Currencies.Count() && !Currencies.Except(condition.Currencies).Any() && Periods == condition.Periods); }
public bool CorrespondsTo(FeeCondition condition) { return(condition != null && Kind == condition.Kind && Frequency == condition.Frequency && condition.Currencies != Currencies && Currencies.Count() == condition.Currencies.Count() && !Currencies.Except(condition.Currencies).Any()); }