public IncidentUpdater( ITableWrapper table, IIncidentApiClient incidentApiClient, ILogger <IncidentUpdater> logger) { _table = table ?? throw new ArgumentNullException(nameof(table)); _incidentApiClient = incidentApiClient ?? throw new ArgumentNullException(nameof(incidentApiClient)); _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)); }