public OrderDataGeneratorSedolFilteringDecorator(
     IStockExchangeStreamFactory streamFactory,
     IOrderDataGenerator baseGenerator,
     IReadOnlyCollection <string> sedols,
     bool inclusive)
 {
     this._streamFactory = streamFactory ?? throw new ArgumentNullException(nameof(streamFactory));
     this._baseGenerator = baseGenerator ?? throw new ArgumentNullException(nameof(baseGenerator));
     this._sedols        = sedols?.Where(sed => !string.IsNullOrWhiteSpace(sed)).ToList() ?? new List <string>();
     this._inclusive     = inclusive;
 }
Beispiel #2
0
 public TradingFactory(IStockExchangeStreamFactory streamFactory, ILogger logger)
 {
     this._streamFactory = streamFactory ?? throw new ArgumentNullException(nameof(streamFactory));
     this._logger        = logger ?? throw new ArgumentNullException(nameof(logger));
 }