public ControlMapper(IUnitOfWork uow)
 {
     this.uow            = uow;
     controlNameService  = new ControlNameService(uow);
     employeeLibService  = new EmployeeLibService(uow);
     equipmentLibService = new EquipmentLibService(uow);
     employeeService     = new EmployeeService(uow);
     imageLibService     = new ImageLibService(uow);
     requirementDocumentationLibService = new RequirementDocumentationLibService(uow);
     resultLibService = new ResultLibService(uow);
     controlMethodDocumentationLibService = new ControlMethodDocumentationLibService(uow);
 }
Esempio n. 2
0
        public BllSelectedControlName MapToBll(DalSelectedControlName entity)
        {
            ControlNameService controlNameService = new ControlNameService(uow);
            var bllControlName = entity.ControlName_id != null?controlNameService.Get((int)entity.ControlName_id) : null;

            BllSelectedControlName bllEntity = new BllSelectedControlName
            {
                Id          = entity.Id,
                ControlName = bllControlName
            };

            return(bllEntity);
        }
Esempio n. 3
0
 public CertificateMapper(IUnitOfWork uow)
 {
     this.uow           = uow;
     controlNameService = new ControlNameService(uow);
     employeeService    = new EmployeeService(uow);
 }
 public ControlMethodDocumentationMapper(IUnitOfWork uow)
 {
     this.uow           = uow;
     controlNameService = new ControlNameService(uow);
 }