public ReportServices ( IReportRepository reportRepository, IRALUnitOfWork rALUnitOfWork, IMapper mapper, IEmailManager emailManager ) { if (reportRepository == null) { throw new ArgumentNullException("ReportRepository"); } if (rALUnitOfWork == null) { throw new ArgumentNullException("RALUnitOfWork"); } if (mapper == null) { throw new ArgumentNullException("Mapper"); } if (emailManager == null) { throw new ArgumentNullException("EmailManager"); } _reportRepository = reportRepository; _rALUnitOfWork = rALUnitOfWork; _mapper = mapper; _emailManager = emailManager; }
public RALServices ( IBusinessUnitRepository businessUnitRepository, ILoginRepository loginRepository, IPORepository pORepository, IStoreRepository storeRepository, IVendorRepository vendorRepository, IRALUnitOfWork rALUnitOfWork, IMapper mapper, IEmailManager emailManager ) { if (businessUnitRepository == null) { throw new ArgumentNullException("BusinessUnitRepository"); } if (loginRepository == null) { throw new ArgumentNullException("LoginRepository"); } if (pORepository == null) { throw new ArgumentNullException("PORepository"); } if (storeRepository == null) { throw new ArgumentNullException("StoreRepository"); } if (vendorRepository == null) { throw new ArgumentNullException("VendorRepository"); } if (rALUnitOfWork == null) { throw new ArgumentNullException("RALUnitOfWork"); } if (mapper == null) { throw new ArgumentNullException("Mapper"); } if (emailManager == null) { throw new ArgumentNullException("EmailManager"); } _businessUnitRepository = businessUnitRepository; _loginRepository = loginRepository; _pORepository = pORepository; _storeRepository = storeRepository; _vendorRepository = vendorRepository; _rALUnitOfWork = rALUnitOfWork; _mapper = mapper; _emailManager = emailManager; }