/// <summary> /// Initializes a new instance of the <see cref="UniverseFilterService"/> class. /// </summary> /// <param name="universeUnsubscriberFactory"> /// The universe un subscriber factory. /// </param> /// <param name="highMarketCapFilter"> /// The high market cap filter. /// </param> /// <param name="accounts"> /// The accounts. /// </param> /// <param name="traders"> /// The traders. /// </param> /// <param name="markets"> /// The markets. /// </param> /// <param name="funds"> /// The funds. /// </param> /// <param name="strategies"> /// The strategies. /// </param> /// <param name="sectors"> /// The sectors. /// </param> /// <param name="industries"> /// The industries. /// </param> /// <param name="regions"> /// The regions. /// </param> /// <param name="countries"> /// The countries. /// </param> /// <param name="logger"> /// The logger. /// </param> public UniverseFilterService( IUnsubscriberFactory <IUniverseEvent> universeUnsubscriberFactory, IHighMarketCapFilter highMarketCapFilter, IUniverseRule filteredRule, RuleFilter accounts, RuleFilter traders, RuleFilter markets, RuleFilter funds, RuleFilter strategies, RuleFilter sectors, RuleFilter industries, RuleFilter regions, RuleFilter countries, ILogger <UniverseFilterService> logger) { this.universeUnsubscriberFactory = universeUnsubscriberFactory ?? throw new ArgumentNullException(nameof(universeUnsubscriberFactory)); this.highMarketCapFilter = highMarketCapFilter ?? throw new ArgumentNullException(nameof(highMarketCapFilter)); this.filteredRule = filteredRule; this.accounts = accounts; this.traders = traders; this.markets = markets; this.funds = funds; this.strategies = strategies; this.sectors = sectors; this.industries = industries; this.regions = regions; this.countries = countries; this.universeObservers = new ConcurrentDictionary <IObserver <IUniverseEvent>, IObserver <IUniverseEvent> >(); this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public void Setup() { this._unsubscriber = A.Fake <IUnsubscriberFactory <IUniverseEvent> >(); this._filteredRule = A.Fake <IUniverseRule>(); this._highMarketCapFilter = A.Fake <IHighMarketCapFilter>(); this._observer = A.Fake <IUniverseCloneableRule>(); this._logger = A.Fake <ILogger <UniverseFilterService> >(); }