Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 public ProjectAttendanceService(IProjectAttendanceRepository ProjectAttendanceRepository, IUnitOfWork uow)
 {
     this._projectAttendanceRepository = ProjectAttendanceRepository;
     this._uow = uow;
 }