public StatisticsBusiness(IUserRepository userRepository, IStatisticsProvider statisticsProvider) { userRepository.ShouldNotBeNull(); statisticsProvider.ShouldNotBeNull(); _userRepository = userRepository; _statisticsProvider = statisticsProvider; }
public StatisticsController(IStatisticsBusiness statisticsBusiness, ILogger <StatisticsController> logger, IStatisticsProvider statisticsProvider) { statisticsBusiness.ShouldNotBeNull(); logger.ShouldNotBeNull(); statisticsProvider.ShouldNotBeNull(); _statisticsBusiness = statisticsBusiness; _logger = logger; _statisticsProvider = statisticsProvider; }