public StatisticsBusiness(IUserRepository userRepository, IStatisticsProvider statisticsProvider)
        {
            userRepository.ShouldNotBeNull();
            statisticsProvider.ShouldNotBeNull();

            _userRepository     = userRepository;
            _statisticsProvider = statisticsProvider;
        }
示例#2
0
        public StatisticsController(IStatisticsBusiness statisticsBusiness, ILogger <StatisticsController> logger,
                                    IStatisticsProvider statisticsProvider)
        {
            statisticsBusiness.ShouldNotBeNull();
            logger.ShouldNotBeNull();
            statisticsProvider.ShouldNotBeNull();

            _statisticsBusiness = statisticsBusiness;
            _logger             = logger;
            _statisticsProvider = statisticsProvider;
        }