/// <summary> /// Initializes a new instance of the ProjectHourReportService class. /// </summary> /// <param name="unitOfWork">UnitOfWork information</param> public ProjectHourReportService(UnitOfWork unitOfWork) { if (unitOfWork == null) { throw new ArgumentNullException(UnitOfWorkConst); } this.unitOfWork = unitOfWork; this.projectHourReportRepository = new ProjectHourReportRepository(this.unitOfWork); }
/// <summary> /// Initializes a new instance of the TimesheetReportService class. /// </summary> /// <param name="unitOfWork">UnitOfWork information</param> public TimesheetReportService(UnitOfWork unitOfWork) { if (unitOfWork == null) { throw new ArgumentNullException(UnitOfWorkConst); } this.unitOfWork = unitOfWork; this.timesheetReportRepository = new TimesheetReportRepository(this.unitOfWork); }