コード例 #1
0
        public TeamProvider(IDocumentLoader documentLoader, TeamConfigSettings settings, IDocumentParser <IEnumerable <PlayerRoosterData> > teamRoosterParser, IDocumentParser <IEnumerable <PlayerSeasonStatisticsData> > playerSeasonStatisticsParser, IDocumentParser <IEnumerable <PlayByPlayData> > playByPlayParser, IDocumentParser <TeamMiscData> teamMiscParser)
        {
            _documentLoader = documentLoader ?? throw new ArgumentNullException(nameof(documentLoader));
            _settings       = settings ?? throw new ArgumentNullException(nameof(settings));

            _teamRoosterParser            = teamRoosterParser ?? throw new ArgumentNullException(nameof(teamRoosterParser));
            _playerSeasonStatisticsParser = playerSeasonStatisticsParser ?? throw new ArgumentNullException(nameof(playerSeasonStatisticsParser));
            _playByPlayParser             = playByPlayParser ?? throw new ArgumentNullException(nameof(playByPlayParser));
            _teamMiscParser = teamMiscParser ?? throw new ArgumentNullException(nameof(teamMiscParser));
        }
コード例 #2
0
 public LoadTeamDataFromFileSystemBehavior(ITeamProvider next, IFileSystem fileSystem, TeamConfigSettings settings)
 {
     _next       = next ?? throw new ArgumentNullException(nameof(next));
     _fileSystem = fileSystem ?? throw new ArgumentNullException(nameof(fileSystem));
     _settings   = settings ?? throw new ArgumentNullException(nameof(settings));
 }