예제 #1
0
 public EditTournamentSeasonsController(IGlobalSettings globalSettings,
                                        IUmbracoContextAccessor umbracoContextAccessor,
                                        ServiceContext serviceContext,
                                        AppCaches appCaches,
                                        IProfilingLogger profilingLogger,
                                        UmbracoHelper umbracoHelper,
                                        ITournamentDataSource tournamentDataSource,
                                        ISeasonDataSource seasonDataSource,
                                        IAuthorizationPolicy <Tournament> authorizationPolicy,
                                        ISeasonEstimator seasonEstimator,
                                        IDateTimeFormatter dateFormatter)
     : base(globalSettings, umbracoContextAccessor, serviceContext, appCaches, profilingLogger, umbracoHelper)
 {
     _tournamentDataSource = tournamentDataSource ?? throw new ArgumentNullException(nameof(tournamentDataSource));
     _seasonDataSource     = seasonDataSource ?? throw new ArgumentNullException(nameof(seasonDataSource));
     _authorizationPolicy  = authorizationPolicy ?? throw new ArgumentNullException(nameof(authorizationPolicy));
     _seasonEstimator      = seasonEstimator ?? throw new ArgumentNullException(nameof(seasonEstimator));
     _dateFormatter        = dateFormatter ?? throw new ArgumentNullException(nameof(dateFormatter));
 }
예제 #2
0
 public MatchFilterFactory(ISeasonEstimator seasonEstimator)
 {
     _seasonEstimator = seasonEstimator ?? throw new ArgumentNullException(nameof(seasonEstimator));
 }
예제 #3
0
 public MatchValidator(ISeasonEstimator seasonEstimator)
 {
     _seasonEstimator = seasonEstimator ?? throw new ArgumentNullException(nameof(seasonEstimator));
 }