public BatchProcess(IPeriodService service, IIdentityService identityService, ITrackService trackService, IWasteStatisticService wasteStatisticService, IBatchLogService batchLogService) { if (service == null) { throw new ArgumentNullException("service"); } if (identityService == null) { throw new ArgumentNullException("identityService"); } if (trackService == null) { throw new ArgumentNullException("trackService"); } if (wasteStatisticService == null) { throw new ArgumentNullException("wasteStatisticService"); } if (batchLogService == null) { throw new ArgumentNullException("batchLogService"); } _service = service; _identityService = identityService; _trackService = trackService; _wasteStatisticService = wasteStatisticService; _batchLogService = batchLogService; }
public StatisticsController(IWasteStatisticService wasteStatisticService, IIdentityService identityService, IUserContextProvider userContextProvider) { if (wasteStatisticService == null) { throw new ArgumentNullException("wasteStatisticService"); } if (identityService == null) { throw new ArgumentNullException("identityService"); } if (userContextProvider == null) { throw new ArgumentNullException("userContextProvider"); } this._wasteStatisticService = wasteStatisticService; this._identityService = identityService; this._userContextProvider = userContextProvider; }