public ReportService( IRightService rightService, IUserService userService, IReportRepository reportRepository, IReportSecurityService reportSecurityService) { if (rightService == null) { throw new ArgumentNullException("rightService"); } _rightService = rightService; if (userService == null) { throw new ArgumentNullException("userService"); } _userService = userService; if (reportRepository == null) { throw new ArgumentNullException("reportRepository"); } _reportRepository = reportRepository; if (reportSecurityService == null) { throw new ArgumentNullException("reportSecurityService"); } _reportSecurityService = reportSecurityService; }
public ReportUserRightsController( IReportService reportService, IReportSecurityService reportSecurityService, ILogger logger ) { if (reportSecurityService == null) { throw new ArgumentNullException("reportSecurityService"); } _reportSecurityService = reportSecurityService; if (reportService == null) { throw new ArgumentNullException("reportService"); } _reportService = reportService; if (logger == null) { throw new ArgumentNullException("logger"); } _logger = logger; }