public ProjectTests() { IUnitOfWork uow = new NHUnitOfWork(); this._projectRepository = new ProjectRepository(uow); this._projectAttendanceRepository = new ProjectAttendanceRepository(uow); this._projectMaterialRepository = new ProjectMaterialRepository(uow); this._projectProductRepository = new ProjectProductRepository(uow); this._projectTypeRepository = new ProjectTypeRepository(uow); }
public ProjectTests() { IUnitOfWork uow = new NHUnitOfWork(); this._projectAttendanceRepository = new ProjectAttendanceRepository(uow); this._projectAttendanceService = new ProjectAttendanceService(this._projectAttendanceRepository, uow); this._projectMaterialRepository = new ProjectMaterialRepository(uow); this._projectMaterialService = new ProjectMaterialService(this._projectMaterialRepository, uow); this._projectProductRepository = new ProjectProductRepository(uow); this._projectProductService = new ProjectProductService(this._projectProductRepository, uow); this._projectTypeRepository = new ProjectTypeRepository(uow); this._projectTypeService = new ProjectTypeService(this._projectTypeRepository, uow); this._projectRepository = new ProjectRepository(uow); this._projectService = new ProjectService(this._projectRepository, this._projectTypeRepository, null, null, uow); }
public ProjectProductService(IProjectProductRepository ProjectProductRepository, IUnitOfWork uow) { this._projectProductRepository = ProjectProductRepository; this._uow = uow; }