Exemple #1
0
 public StatisticsFilterFactory(
     IStoolballEntityRouteParser stoolballEntityRouteParser,
     IPlayerDataSource playerDataSource,
     IClubDataSource clubDataSource,
     ITeamDataSource teamDataSource,
     IMatchLocationDataSource matchLocationDataSource,
     ICompetitionDataSource competitionDataSource,
     ISeasonDataSource seasonDataSource,
     IRouteNormaliser routeNormaliser)
 {
     _stoolballEntityRouteParser = stoolballEntityRouteParser ?? throw new ArgumentNullException(nameof(stoolballEntityRouteParser));
     _playerDataSource           = playerDataSource ?? throw new ArgumentNullException(nameof(playerDataSource));
     _clubDataSource             = clubDataSource ?? throw new ArgumentNullException(nameof(clubDataSource));
     _teamDataSource             = teamDataSource ?? throw new ArgumentNullException(nameof(teamDataSource));
     _matchLocationDataSource    = matchLocationDataSource ?? throw new ArgumentNullException(nameof(matchLocationDataSource));
     _competitionDataSource      = competitionDataSource ?? throw new ArgumentNullException(nameof(competitionDataSource));
     _seasonDataSource           = seasonDataSource ?? throw new ArgumentNullException(nameof(seasonDataSource));
     _routeNormaliser            = routeNormaliser ?? throw new ArgumentNullException(nameof(routeNormaliser));
 }
Exemple #2
0
 public SqlServerTeamDataSource(IDatabaseConnectionFactory databaseConnectionFactory, IRouteNormaliser routeNormaliser)
 {
     _databaseConnectionFactory = databaseConnectionFactory ?? throw new ArgumentNullException(nameof(databaseConnectionFactory));
     _routeNormaliser           = routeNormaliser ?? throw new ArgumentNullException(nameof(routeNormaliser));
 }