public EditStatisticsSurfaceController(IUmbracoContextAccessor umbracoContextAccessor, IUmbracoDatabaseFactory umbracoDatabaseFactory, ServiceContext serviceContext,
                                        AppCaches appCaches, ILogger logger, IProfilingLogger profilingLogger, UmbracoHelper umbracoHelper, IDatabaseConnectionFactory databaseConnectionFactory,
                                        IBackgroundTaskTracker taskTracker, IMatchListingDataSource matchListingDataSource, IMatchDataSource matchDataSource, IStatisticsRepository statisticsRepository,
                                        IBowlingFiguresCalculator bowlingFiguresCalculator, IPlayerInMatchStatisticsBuilder playerInMatchStatisticsBuilder, IPlayerIdentityFinder playerIdentityFinder)
     : base(umbracoContextAccessor, umbracoDatabaseFactory, serviceContext, appCaches, logger, profilingLogger, umbracoHelper)
 {
     _databaseConnectionFactory = databaseConnectionFactory ?? throw new ArgumentNullException(nameof(databaseConnectionFactory));
     _taskTracker                    = taskTracker ?? throw new ArgumentNullException(nameof(taskTracker));
     _matchListingDataSource         = matchListingDataSource ?? throw new ArgumentNullException(nameof(matchListingDataSource));
     _matchDataSource                = matchDataSource ?? throw new ArgumentNullException(nameof(matchDataSource));
     _statisticsRepository           = statisticsRepository ?? throw new ArgumentNullException(nameof(statisticsRepository));
     _bowlingFiguresCalculator       = bowlingFiguresCalculator ?? throw new ArgumentNullException(nameof(bowlingFiguresCalculator));
     _playerInMatchStatisticsBuilder = playerInMatchStatisticsBuilder ?? throw new ArgumentNullException(nameof(playerInMatchStatisticsBuilder));
     _playerIdentityFinder           = playerIdentityFinder ?? throw new ArgumentNullException(nameof(playerIdentityFinder));
 }
 public DeleteMatchController(IGlobalSettings globalSettings,
                              IUmbracoContextAccessor umbracoContextAccessor,
                              ServiceContext serviceContext,
                              AppCaches appCaches,
                              IProfilingLogger profilingLogger,
                              UmbracoHelper umbracoHelper,
                              IMatchDataSource matchDataSource,
                              IPlayerDataSource playerDataSource,
                              IPlayerIdentityFinder playerIdentityFinder,
                              ICommentsDataSource <Match> matchCommentsDataSource,
                              IAuthorizationPolicy <Match> authorizationPolicy,
                              IDateTimeFormatter dateFormatter)
     : base(globalSettings, umbracoContextAccessor, serviceContext, appCaches, profilingLogger, umbracoHelper)
 {
     _matchDataSource         = matchDataSource ?? throw new System.ArgumentNullException(nameof(matchDataSource));
     _playerDataSource        = playerDataSource ?? throw new ArgumentNullException(nameof(playerDataSource));
     _playerIdentityFinder    = playerIdentityFinder ?? throw new ArgumentNullException(nameof(playerIdentityFinder));
     _matchCommentsDataSource = matchCommentsDataSource ?? throw new ArgumentNullException(nameof(matchCommentsDataSource));
     _authorizationPolicy     = authorizationPolicy ?? throw new ArgumentNullException(nameof(authorizationPolicy));
     _dateFormatter           = dateFormatter ?? throw new ArgumentNullException(nameof(dateFormatter));
 }
 public PlayerInMatchStatisticsBuilder(IPlayerIdentityFinder playerIdentityFinder, IOversHelper oversHelper)
 {
     _playerIdentityFinder = playerIdentityFinder ?? throw new ArgumentNullException(nameof(playerIdentityFinder));
     _oversHelper          = oversHelper;
 }