예제 #1
0
        public DataService(
            IRepositoryExportService <LanguageDataEntity> languageRepositoryExportService,
            IRepositoryImportService <LanguageDataEntity> languageRepositoryImportService,
            IRepository <LanguageDataEntity> languageRepository)
        {
            _languageRepositoryExportService = languageRepositoryExportService ?? throw new ArgumentNullException(nameof(languageRepositoryExportService));
            _languageRepositoryImportService = languageRepositoryImportService ?? throw new ArgumentNullException(nameof(languageRepositoryImportService));

            Languages = languageRepository ?? throw new ArgumentNullException(nameof(languageRepository));
        }
예제 #2
0
        public DataService(
            IRepositoryExportService <CommentaryIndexDriverDataEntity> commentaryIndexDriverRepositoryExportService,
            IRepositoryImportService <CommentaryIndexDriverDataEntity> commentaryIndexDriverRepositoryImportService,
            IRepositoryExportService <CommentaryIndexTeamDataEntity> commentaryIndexTeamRepositoryExportService,
            IRepositoryImportService <CommentaryIndexTeamDataEntity> commentaryIndexTeamRepositoryImportService,
            IRepositoryExportService <CommentaryPrefixDriverDataEntity> commentaryPrefixDriverRepositoryExportService,
            IRepositoryImportService <CommentaryPrefixDriverDataEntity> commentaryPrefixDriverRepositoryImportService,
            IRepositoryExportService <CommentaryPrefixTeamDataEntity> commentaryPrefixTeamRepositoryExportService,
            IRepositoryImportService <CommentaryPrefixTeamDataEntity> commentaryPrefixTeamRepositoryImportService,
            IRepositoryExportService <CommentaryDriverDataEntity> commentaryDriverRepositoryExportService,
            IRepositoryImportService <CommentaryDriverDataEntity> commentaryDriverRepositoryImportService,
            IRepositoryExportService <CommentaryTeamDataEntity> commentaryTeamRepositoryExportService,
            IRepositoryImportService <CommentaryTeamDataEntity> commentaryTeamRepositoryImportService,
            IRepositoryExportService <CarNumberDataEntity> carNumberRepositoryExportService,
            IRepositoryImportService <CarNumberDataEntity> carNumberRepositoryImportService,
            IRepositoryExportService <ChassisHandlingDataEntity> chassisHandlingRepositoryExportService,
            IRepositoryImportService <ChassisHandlingDataEntity> chassisHandlingRepositoryImportService,
            IRepositoryExportService <F1ChiefCommercialDataEntity> f1ChiefCommercialRepositoryExportService,
            IRepositoryImportService <F1ChiefCommercialDataEntity> f1ChiefCommercialRepositoryImportService,
            IRepositoryExportService <F1ChiefDesignerDataEntity> f1ChiefDesignerRepositoryExportService,
            IRepositoryImportService <F1ChiefDesignerDataEntity> f1ChiefDesignerRepositoryImportService,
            IRepositoryExportService <F1ChiefEngineerDataEntity> f1ChiefEngineerRepositoryExportService,
            IRepositoryImportService <F1ChiefEngineerDataEntity> f1ChiefEngineerRepositoryImportService,
            IRepositoryExportService <F1ChiefMechanicDataEntity> f1ChiefMechanicRepositoryExportService,
            IRepositoryImportService <F1ChiefMechanicDataEntity> f1ChiefMechanicRepositoryImportService,
            IRepositoryExportService <F1DriverDataEntity> f1DriverRepositoryExportService,
            IRepositoryImportService <F1DriverDataEntity> f1DriverRepositoryImportService,
            IRepositoryExportService <NonF1ChiefCommercialDataEntity> nonF1ChiefCommercialRepositoryExportService,
            IRepositoryImportService <NonF1ChiefCommercialDataEntity> nonF1ChiefCommercialRepositoryImportService,
            IRepositoryExportService <NonF1ChiefDesignerDataEntity> nonF1ChiefDesignerRepositoryExportService,
            IRepositoryImportService <NonF1ChiefDesignerDataEntity> nonF1ChiefDesignerRepositoryImportService,
            IRepositoryExportService <NonF1ChiefEngineerDataEntity> nonF1ChiefEngineerRepositoryExportService,
            IRepositoryImportService <NonF1ChiefEngineerDataEntity> nonF1ChiefEngineerRepositoryImportService,
            IRepositoryExportService <NonF1ChiefMechanicDataEntity> nonF1ChiefMechanicRepositoryExportService,
            IRepositoryImportService <NonF1ChiefMechanicDataEntity> nonF1ChiefMechanicRepositoryImportService,
            IRepositoryExportService <NonF1DriverDataEntity> nonF1DriverRepositoryExportService,
            IRepositoryImportService <NonF1DriverDataEntity> nonF1DriverRepositoryImportService,
            IRepositoryExportService <TeamDataEntity> teamRepositoryExportService,
            IRepositoryImportService <TeamDataEntity> teamRepositoryImportService,
            IRepositoryExportService <SponsorDataEntity> sponsorRepositoryExportService,
            IRepositoryImportService <SponsorDataEntity> sponsorRepositoryImportService,
            IRepositoryExportService <SponsorContractDataEntity> sponsorContractRepositoryExportService,
            IRepositoryImportService <SponsorContractDataEntity> sponsorContractRepositoryImportService,
            IRepositoryExportService <SponsorFiaDataEntity> sponsorFiaRepositoryExportService,
            IRepositoryImportService <SponsorFiaDataEntity> sponsorFiaRepositoryImportService,
            IRepositoryExportService <TrackDataEntity> trackRepositoryExportService,
            IRepositoryImportService <TrackDataEntity> trackRepositoryImportService,
            IRepositoryExportService <PerformanceCurveDataEntity> performanceCurveRepositoryExportService,
            IRepositoryImportService <PerformanceCurveDataEntity> performanceCurveRepositoryImportService,
            IRepositoryImportService <ChiefDriverLoyaltyLookupDataEntity> chiefDriverLoyaltyLookupRepositoryImportService,
            IRepositoryImportService <DriverNationalityLookupDataEntity> driverNationalityLookupRepositoryImportService,
            IRepositoryImportService <DriverRoleLookupDataEntity> driverRoleLookupRepositoryImportService,
            IRepositoryImportService <SponsorNameLookupDataEntity> sponsorNameLookupRepositoryImportService,
            IRepositoryImportService <TeamDebutGrandPrixLookupDataEntity> teamDebutGrandPrixLookupRepositoryImportService,
            IRepositoryImportService <TrackDriverLookupDataEntity> trackDriverLookupRepositoryImportService,
            IRepositoryImportService <TrackLayoutLookupDataEntity> trackLayoutLookupRepositoryImportService,
            IRepositoryImportService <TrackTeamLookupDataEntity> trackTeamLookupRepositoryImportService,
            IRepositoryImportService <TyreSupplierLookupDataEntity> tyreSupplierLookupRepositoryImportService,
            IRepository <CommentaryIndexDriverDataEntity> commentaryIndexDriverRepository,
            IRepository <CommentaryIndexTeamDataEntity> commentaryIndexTeamRepository,
            IRepository <CommentaryPrefixDriverDataEntity> commentaryPrefixDriverRepository,
            IRepository <CommentaryPrefixTeamDataEntity> commentaryPrefixTeamRepository,
            IRepository <CommentaryDriverDataEntity> commentaryDriverRepository,
            IRepository <CommentaryTeamDataEntity> commentaryTeamRepository,
            IRepository <CarNumberDataEntity> carNumberRepository,
            IRepository <ChassisHandlingDataEntity> chassisHandlingRepository,
            IRepository <F1ChiefCommercialDataEntity> f1ChiefCommercialRepository,
            IRepository <F1ChiefDesignerDataEntity> f1ChiefDesignerRepository,
            IRepository <F1ChiefEngineerDataEntity> f1ChiefEngineerRepository,
            IRepository <F1ChiefMechanicDataEntity> f1ChiefMechanicRepository,
            IRepository <F1DriverDataEntity> f1DriverRepository,
            IRepository <NonF1ChiefCommercialDataEntity> nonF1ChiefCommercialRepository,
            IRepository <NonF1ChiefDesignerDataEntity> nonF1ChiefDesignerRepository,
            IRepository <NonF1ChiefEngineerDataEntity> nonF1ChiefEngineerRepository,
            IRepository <NonF1ChiefMechanicDataEntity> nonF1ChiefMechanicRepository,
            IRepository <NonF1DriverDataEntity> nonF1DriverRepository,
            IRepository <TeamDataEntity> teamRepository,
            IRepository <SponsorDataEntity> sponsorRepository,
            IRepository <SponsorContractDataEntity> sponsorContractRepository,
            IRepository <SponsorFiaDataEntity> sponsorFiaRepository,
            IRepository <TrackDataEntity> trackRepository,
            IRepository <PerformanceCurveDataEntity> performanceCurveRepository,
            IRepository <ChiefDriverLoyaltyLookupDataEntity> chiefDriverLoyaltyLookupRepository,
            IRepository <DriverNationalityLookupDataEntity> driverNationalityLookupRepository,
            IRepository <DriverRoleLookupDataEntity> driverRoleLookupRepository,
            IRepository <SponsorNameLookupDataEntity> sponsorNameLookupRepository,
            IRepository <TeamDebutGrandPrixLookupDataEntity> teamDebutGrandPrixLookupRepository,
            IRepository <TrackDriverLookupDataEntity> trackDriverLookupRepository,
            IRepository <TrackLayoutLookupDataEntity> trackLayoutLookupRepository,
            IRepository <TrackTeamLookupDataEntity> trackTeamLookupRepository,
            IRepository <TyreSupplierLookupDataEntity> tyreSupplierLookupRepository)
        {
            _commentaryIndexDriverRepositoryExportService  = commentaryIndexDriverRepositoryExportService ?? throw new ArgumentNullException(nameof(commentaryIndexDriverRepositoryExportService));
            _commentaryIndexDriverRepositoryImportService  = commentaryIndexDriverRepositoryImportService ?? throw new ArgumentNullException(nameof(commentaryIndexDriverRepositoryImportService));
            _commentaryIndexTeamRepositoryExportService    = commentaryIndexTeamRepositoryExportService ?? throw new ArgumentNullException(nameof(commentaryIndexTeamRepositoryExportService));
            _commentaryIndexTeamRepositoryImportService    = commentaryIndexTeamRepositoryImportService ?? throw new ArgumentNullException(nameof(commentaryIndexTeamRepositoryImportService));
            _commentaryPrefixDriverRepositoryExportService = commentaryPrefixDriverRepositoryExportService ?? throw new ArgumentNullException(nameof(commentaryPrefixDriverRepositoryExportService));
            _commentaryPrefixDriverRepositoryImportService = commentaryPrefixDriverRepositoryImportService ?? throw new ArgumentNullException(nameof(commentaryPrefixDriverRepositoryImportService));
            _commentaryPrefixTeamRepositoryExportService   = commentaryPrefixTeamRepositoryExportService ?? throw new ArgumentNullException(nameof(commentaryPrefixTeamRepositoryExportService));
            _commentaryPrefixTeamRepositoryImportService   = commentaryPrefixTeamRepositoryImportService ?? throw new ArgumentNullException(nameof(commentaryPrefixTeamRepositoryImportService));
            _commentaryDriverRepositoryExportService       = commentaryDriverRepositoryExportService ?? throw new ArgumentNullException(nameof(commentaryDriverRepositoryExportService));
            _commentaryDriverRepositoryImportService       = commentaryDriverRepositoryImportService ?? throw new ArgumentNullException(nameof(commentaryDriverRepositoryImportService));
            _commentaryTeamRepositoryExportService         = commentaryTeamRepositoryExportService ?? throw new ArgumentNullException(nameof(commentaryTeamRepositoryExportService));
            _commentaryTeamRepositoryImportService         = commentaryTeamRepositoryImportService ?? throw new ArgumentNullException(nameof(commentaryTeamRepositoryImportService));
            _carNumberRepositoryExportService            = carNumberRepositoryExportService ?? throw new ArgumentNullException(nameof(carNumberRepositoryExportService));
            _carNumberRepositoryImportService            = carNumberRepositoryImportService ?? throw new ArgumentNullException(nameof(carNumberRepositoryImportService));
            _chassisHandlingRepositoryExportService      = chassisHandlingRepositoryExportService ?? throw new ArgumentNullException(nameof(chassisHandlingRepositoryExportService));
            _chassisHandlingRepositoryImportService      = chassisHandlingRepositoryImportService ?? throw new ArgumentNullException(nameof(chassisHandlingRepositoryImportService));
            _f1ChiefCommercialRepositoryExportService    = f1ChiefCommercialRepositoryExportService ?? throw new ArgumentNullException(nameof(f1ChiefCommercialRepositoryExportService));
            _f1ChiefCommercialRepositoryImportService    = f1ChiefCommercialRepositoryImportService ?? throw new ArgumentNullException(nameof(f1ChiefCommercialRepositoryImportService));
            _f1ChiefDesignerRepositoryExportService      = f1ChiefDesignerRepositoryExportService ?? throw new ArgumentNullException(nameof(f1ChiefDesignerRepositoryExportService));
            _f1ChiefDesignerRepositoryImportService      = f1ChiefDesignerRepositoryImportService ?? throw new ArgumentNullException(nameof(f1ChiefDesignerRepositoryImportService));
            _f1ChiefEngineerRepositoryExportService      = f1ChiefEngineerRepositoryExportService ?? throw new ArgumentNullException(nameof(f1ChiefEngineerRepositoryExportService));
            _f1ChiefEngineerRepositoryImportService      = f1ChiefEngineerRepositoryImportService ?? throw new ArgumentNullException(nameof(f1ChiefEngineerRepositoryImportService));
            _f1ChiefMechanicRepositoryExportService      = f1ChiefMechanicRepositoryExportService ?? throw new ArgumentNullException(nameof(f1ChiefMechanicRepositoryExportService));
            _f1ChiefMechanicRepositoryImportService      = f1ChiefMechanicRepositoryImportService ?? throw new ArgumentNullException(nameof(f1ChiefMechanicRepositoryImportService));
            _f1DriverRepositoryExportService             = f1DriverRepositoryExportService ?? throw new ArgumentNullException(nameof(f1DriverRepositoryExportService));
            _f1DriverRepositoryImportService             = f1DriverRepositoryImportService ?? throw new ArgumentNullException(nameof(f1DriverRepositoryImportService));
            _nonF1ChiefCommercialRepositoryExportService = nonF1ChiefCommercialRepositoryExportService ?? throw new ArgumentNullException(nameof(nonF1ChiefCommercialRepositoryExportService));
            _nonF1ChiefCommercialRepositoryImportService = nonF1ChiefCommercialRepositoryImportService ?? throw new ArgumentNullException(nameof(nonF1ChiefCommercialRepositoryImportService));
            _nonF1ChiefDesignerRepositoryExportService   = nonF1ChiefDesignerRepositoryExportService ?? throw new ArgumentNullException(nameof(nonF1ChiefDesignerRepositoryExportService));
            _nonF1ChiefDesignerRepositoryImportService   = nonF1ChiefDesignerRepositoryImportService ?? throw new ArgumentNullException(nameof(nonF1ChiefDesignerRepositoryImportService));
            _nonF1ChiefEngineerRepositoryExportService   = nonF1ChiefEngineerRepositoryExportService ?? throw new ArgumentNullException(nameof(nonF1ChiefEngineerRepositoryExportService));
            _nonF1ChiefEngineerRepositoryImportService   = nonF1ChiefEngineerRepositoryImportService ?? throw new ArgumentNullException(nameof(nonF1ChiefEngineerRepositoryImportService));
            _nonF1ChiefMechanicRepositoryExportService   = nonF1ChiefMechanicRepositoryExportService ?? throw new ArgumentNullException(nameof(nonF1ChiefMechanicRepositoryExportService));
            _nonF1ChiefMechanicRepositoryImportService   = nonF1ChiefMechanicRepositoryImportService ?? throw new ArgumentNullException(nameof(nonF1ChiefMechanicRepositoryImportService));
            _nonF1DriverRepositoryExportService          = nonF1DriverRepositoryExportService ?? throw new ArgumentNullException(nameof(nonF1DriverRepositoryExportService));
            _nonF1DriverRepositoryImportService          = nonF1DriverRepositoryImportService ?? throw new ArgumentNullException(nameof(nonF1DriverRepositoryImportService));
            _teamRepositoryExportService                     = teamRepositoryExportService ?? throw new ArgumentNullException(nameof(teamRepositoryExportService));
            _teamRepositoryImportService                     = teamRepositoryImportService ?? throw new ArgumentNullException(nameof(teamRepositoryImportService));
            _sponsorRepositoryExportService                  = sponsorRepositoryExportService ?? throw new ArgumentNullException(nameof(sponsorRepositoryExportService));
            _sponsorRepositoryImportService                  = sponsorRepositoryImportService ?? throw new ArgumentNullException(nameof(sponsorRepositoryImportService));
            _sponsorContractRepositoryExportService          = sponsorContractRepositoryExportService ?? throw new ArgumentNullException(nameof(sponsorContractRepositoryExportService));
            _sponsorContractRepositoryImportService          = sponsorContractRepositoryImportService ?? throw new ArgumentNullException(nameof(sponsorContractRepositoryImportService));
            _sponsorFiaRepositoryExportService               = sponsorFiaRepositoryExportService ?? throw new ArgumentNullException(nameof(sponsorFiaRepositoryExportService));
            _sponsorFiaRepositoryImportService               = sponsorFiaRepositoryImportService ?? throw new ArgumentNullException(nameof(sponsorFiaRepositoryImportService));
            _trackRepositoryExportService                    = trackRepositoryExportService ?? throw new ArgumentNullException(nameof(trackRepositoryExportService));
            _trackRepositoryImportService                    = trackRepositoryImportService ?? throw new ArgumentNullException(nameof(trackRepositoryImportService));
            _performanceCurveRepositoryExportService         = performanceCurveRepositoryExportService ?? throw new ArgumentNullException(nameof(performanceCurveRepositoryExportService));
            _performanceCurveRepositoryImportService         = performanceCurveRepositoryImportService ?? throw new ArgumentNullException(nameof(performanceCurveRepositoryImportService));
            _chiefDriverLoyaltyLookupRepositoryImportService = chiefDriverLoyaltyLookupRepositoryImportService ?? throw new ArgumentNullException(nameof(chiefDriverLoyaltyLookupRepositoryImportService));
            _driverNationalityLookupRepositoryImportService  = driverNationalityLookupRepositoryImportService ?? throw new ArgumentNullException(nameof(driverNationalityLookupRepositoryImportService));
            _driverRoleLookupRepositoryImportService         = driverRoleLookupRepositoryImportService ?? throw new ArgumentNullException(nameof(driverRoleLookupRepositoryImportService));
            _sponsorNameLookupRepositoryImportService        = sponsorNameLookupRepositoryImportService ?? throw new ArgumentNullException(nameof(sponsorNameLookupRepositoryImportService));
            _teamDebutGrandPrixLookupRepositoryImportService = teamDebutGrandPrixLookupRepositoryImportService ?? throw new ArgumentNullException(nameof(teamDebutGrandPrixLookupRepositoryImportService));
            _trackDriverLookupRepositoryImportService        = trackDriverLookupRepositoryImportService ?? throw new ArgumentNullException(nameof(trackDriverLookupRepositoryImportService));
            _trackLayoutLookupRepositoryImportService        = trackLayoutLookupRepositoryImportService ?? throw new ArgumentNullException(nameof(trackLayoutLookupRepositoryImportService));
            _trackTeamLookupRepositoryImportService          = trackTeamLookupRepositoryImportService ?? throw new ArgumentNullException(nameof(trackTeamLookupRepositoryImportService));
            _tyreSupplierLookupRepositoryImportService       = tyreSupplierLookupRepositoryImportService ?? throw new ArgumentNullException(nameof(tyreSupplierLookupRepositoryImportService));

            CommentaryIndexDrivers  = commentaryIndexDriverRepository ?? throw new ArgumentNullException(nameof(commentaryIndexDriverRepository));
            CommentaryIndexTeams    = commentaryIndexTeamRepository ?? throw new ArgumentNullException(nameof(commentaryIndexTeamRepository));
            CommentaryPrefixDrivers = commentaryPrefixDriverRepository ?? throw new ArgumentNullException(nameof(commentaryPrefixDriverRepository));
            CommentaryPrefixTeams   = commentaryPrefixTeamRepository ?? throw new ArgumentNullException(nameof(commentaryPrefixTeamRepository));
            CommentaryDrivers       = commentaryDriverRepository ?? throw new ArgumentNullException(nameof(commentaryDriverRepository));
            CommentaryTeams         = commentaryTeamRepository ?? throw new ArgumentNullException(nameof(commentaryTeamRepository));
            CarNumbers            = carNumberRepository ?? throw new ArgumentNullException(nameof(carNumberRepository));
            ChassisHandlings      = chassisHandlingRepository ?? throw new ArgumentNullException(nameof(chassisHandlingRepository));
            F1ChiefCommercials    = f1ChiefCommercialRepository ?? throw new ArgumentNullException(nameof(f1ChiefCommercialRepository));
            F1ChiefDesigners      = f1ChiefDesignerRepository ?? throw new ArgumentNullException(nameof(f1ChiefDesignerRepository));
            F1ChiefEngineers      = f1ChiefEngineerRepository ?? throw new ArgumentNullException(nameof(f1ChiefEngineerRepository));
            F1ChiefMechanics      = f1ChiefMechanicRepository ?? throw new ArgumentNullException(nameof(f1ChiefMechanicRepository));
            F1Drivers             = f1DriverRepository ?? throw new ArgumentNullException(nameof(f1DriverRepository));
            NonF1ChiefCommercials = nonF1ChiefCommercialRepository ?? throw new ArgumentNullException(nameof(nonF1ChiefCommercialRepository));
            NonF1ChiefDesigners   = nonF1ChiefDesignerRepository ?? throw new ArgumentNullException(nameof(nonF1ChiefDesignerRepository));
            NonF1ChiefEngineers   = nonF1ChiefEngineerRepository ?? throw new ArgumentNullException(nameof(nonF1ChiefEngineerRepository));
            NonF1ChiefMechanics   = nonF1ChiefMechanicRepository ?? throw new ArgumentNullException(nameof(nonF1ChiefMechanicRepository));
            NonF1Drivers          = nonF1DriverRepository ?? throw new ArgumentNullException(nameof(nonF1DriverRepository));
            Teams                     = teamRepository ?? throw new ArgumentNullException(nameof(teamRepository));
            Sponsors                  = sponsorRepository ?? throw new ArgumentNullException(nameof(sponsorRepository));
            SponsorContracts          = sponsorContractRepository ?? throw new ArgumentNullException(nameof(sponsorContractRepository));
            SponsorFias               = sponsorFiaRepository ?? throw new ArgumentNullException(nameof(sponsorFiaRepository));
            Tracks                    = trackRepository ?? throw new ArgumentNullException(nameof(trackRepository));
            PerformanceCurveValues    = performanceCurveRepository ?? throw new ArgumentNullException(nameof(performanceCurveRepository));
            ChiefDriverLoyaltyLookups = chiefDriverLoyaltyLookupRepository ?? throw new ArgumentNullException(nameof(chiefDriverLoyaltyLookupRepository));
            DriverNationalityLookups  = driverNationalityLookupRepository ?? throw new ArgumentNullException(nameof(driverNationalityLookupRepository));
            DriverRoleLookups         = driverRoleLookupRepository ?? throw new ArgumentNullException(nameof(driverRoleLookupRepository));
            SponsorNameLookups        = sponsorNameLookupRepository ?? throw new ArgumentNullException(nameof(sponsorNameLookupRepository));
            TeamDebutGrandPrixLookups = teamDebutGrandPrixLookupRepository ?? throw new ArgumentNullException(nameof(teamDebutGrandPrixLookupRepository));
            TrackDriverLookups        = trackDriverLookupRepository ?? throw new ArgumentNullException(nameof(trackDriverLookupRepository));
            TrackLayoutLookups        = trackLayoutLookupRepository ?? throw new ArgumentNullException(nameof(trackLayoutLookupRepository));
            TrackTeamLookups          = trackTeamLookupRepository ?? throw new ArgumentNullException(nameof(trackTeamLookupRepository));
            TyreSupplierLookups       = tyreSupplierLookupRepository ?? throw new ArgumentNullException(nameof(tyreSupplierLookupRepository));
        }