public bool CorrespondsTo(InterestRateCondition condition)
 {
     return(condition != null &&
            Kind == condition.Kind &&
            Currencies.Count() == condition.Currencies.Count() &&
            !Currencies.Except(condition.Currencies).Any() &&
            Periods == condition.Periods);
 }
예제 #2
0
 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());
 }