public AggregationProvider( ITableWrapper table, IAffectedComponentPathProvider <TAggregationEntity> aggregationPathProvider, IAggregationStrategy <TAggregationEntity> strategy, IComponentAffectingEntityFactory <TAggregationEntity> aggregationFactory, ILogger <AggregationProvider <TChildEntity, TAggregationEntity> > logger) { _table = table ?? throw new ArgumentNullException(nameof(table)); _aggregationPathProvider = aggregationPathProvider ?? throw new ArgumentNullException(nameof(aggregationPathProvider)); _strategy = strategy ?? throw new ArgumentNullException(nameof(strategy)); _aggregationFactory = aggregationFactory ?? throw new ArgumentNullException(nameof(aggregationFactory)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public IncidentEntityCollectorProcessor( IIncidentApiClient incidentApiClient, IAggregateIncidentParser aggregateIncidentParser, IComponentAffectingEntityFactory <IncidentEntity> incidentFactory, StatusAggregatorConfiguration configuration, ILogger <IncidentEntityCollectorProcessor> logger) { _incidentApiClient = incidentApiClient ?? throw new ArgumentNullException(nameof(incidentApiClient)); _aggregateIncidentParser = aggregateIncidentParser ?? throw new ArgumentNullException(nameof(aggregateIncidentParser)); _incidentFactory = incidentFactory ?? throw new ArgumentNullException(nameof(incidentFactory)); _incidentApiTeamId = configuration?.TeamId ?? throw new ArgumentNullException(nameof(configuration)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }