Пример #1
0
 /// <summary>
 /// The has internal filters.
 /// </summary>
 /// <param name="filterableRule">
 /// The filterable rule.
 /// </param>
 /// <returns>
 /// The <see cref="bool"/>.
 /// </returns>
 public static bool HasInternalFilters(this IFilterableRule filterableRule)
 {
     return(filterableRule.Accounts?.Type != RuleFilterType.None ||
            filterableRule.Traders?.Type != RuleFilterType.None ||
            filterableRule.Markets?.Type != RuleFilterType.None ||
            filterableRule.Funds?.Type != RuleFilterType.None ||
            filterableRule.Strategies?.Type != RuleFilterType.None);
 }
Пример #2
0
 public void Setup()
 {
     this.filterableRule = A.Fake <IFilterableRule>();
 }