/// <summary>
 /// Determine whether the set of input options has any valid filters.
 /// </summary>
 /// <returns>True if there are valid filters, false otherwise.</returns>
 public bool HasAnyFilters()
 {
     return(!string.IsNullOrEmpty(TargetRepository) ||
            !string.IsNullOrEmpty(TargetBranch) ||
            !string.IsNullOrEmpty(SourceRepository) ||
            !string.IsNullOrEmpty(Channel) ||
            Frequencies.Any() ||
            !string.IsNullOrEmpty(DefaultChannelTarget) ||
            Disabled ||
            Enabled ||
            Batchable ||
            NotBatchable ||
            SubscriptionIds.Any());
 }
 public bool SubscriptionFrequenciesParameterMatches(Subscription subscription)
 {
     return(!Frequencies.Any() || Frequencies.Any(frequency => subscription.Policy.UpdateFrequency.ToString().Contains(frequency, StringComparison.OrdinalIgnoreCase)));
 }