public MasterReportController(Helpers helpers, PlayerBaseController playerBaseController, BaseballSavantHitterController baseballSavantHitterController, BaseballHqHitterController hqHitterController, FanGraphsSpController fanGraphsSpController, FileHandler fileHandler, BaseballSavantSpController baseballSavantSpController, AirtableManager airtableManager, ProjectDirectoryEndPoints projectDirectoryEndPoints) { _helpers = helpers; _playerBaseController = playerBaseController; _baseballSavantHitterController = baseballSavantHitterController; _hqHitterController = hqHitterController; _fanGraphsSpController = fanGraphsSpController; _fileHandler = fileHandler; _baseballSavantSpController = baseballSavantSpController; _airtableManager = airtableManager; _projectDirectoryEndPoints = projectDirectoryEndPoints; }
public LaunchCoreSpSitesController ( Helpers helpers, AirtableManager atM, PlayerBaseController playerBaseController, IOptions <AirtableConfiguration> airtableConfig, PostmanMethods postmanMethods, GoogleSheetsConnector googleSheetsConnector, IOptionsSnapshot <GoogleSheetConfiguration> options, IOptionsSnapshot <AirtableConfiguration> airTableOptions ) { if (airtableConfig is null) { throw new ArgumentNullException(nameof(airtableConfig)); } if (options is null) { throw new ArgumentNullException(nameof(options)); } if (airTableOptions is null) { throw new ArgumentNullException(nameof(airTableOptions)); } _helpers = helpers ?? throw new ArgumentNullException(nameof(helpers)); _atM = atM ?? throw new ArgumentNullException(nameof(atM)); _playerBaseController = playerBaseController ?? throw new ArgumentNullException(nameof(playerBaseController)); _airtableConfig = airtableConfig.Value; _postmanMethods = postmanMethods ?? throw new ArgumentNullException(nameof(postmanMethods)); _googleSheetsConnector = googleSheetsConnector ?? throw new ArgumentNullException(nameof(googleSheetsConnector)); _crunchTimePlayerIdMapConfiguration = options.Get("CrunchtimePlayerIdMap"); _sfbbPlayerIdMapConfiguration = options.Get("SfbbPlayerIdMap"); _spRankingsConfiguration = airTableOptions.Get("SpRankings"); _authorsConfiguration = airTableOptions.Get("Authors"); }