Beispiel #1
0
 public PersonTypeBusinessEngine(IDataRepositoryFactory data_repo_fact, ICache cache, IEntityServiceFactory ent_serv_fact)
     : base(data_repo_fact, null, ent_serv_fact)
 {
     _cache          = cache;
     _repo_prod_type = _data_repository_factory.GetDataRepository <IPersonTypeRepository>();
     _prod_es        = _entity_service_factory.GetEntityService <IPersonEntityService>();
 }
 public PersonTypesController(IPersonTypeRepository repo,
                              IMapper mapper)
 {
     _personTypeRepository = repo ??
                             throw new ArgumentNullException(nameof(repo));
     _mapper = mapper ??
               throw new ArgumentNullException(nameof(mapper));
 }
Beispiel #3
0
        public PersonTypeService(
            ILogger <IPersonTypeService> logger,
            MediatR.IMediator mediator,
            IPersonTypeRepository personTypeRepository,
            IApiPersonTypeServerRequestModelValidator personTypeModelValidator,
            IDALPersonTypeMapper dalPersonTypeMapper,
            IDALCallPersonMapper dalCallPersonMapper)
            : base()
        {
            this.PersonTypeRepository     = personTypeRepository;
            this.PersonTypeModelValidator = personTypeModelValidator;
            this.DalPersonTypeMapper      = dalPersonTypeMapper;
            this.DalCallPersonMapper      = dalCallPersonMapper;
            this.logger = logger;

            this.mediator = mediator;
        }
Beispiel #4
0
 public PersonTypeService(IPersonTypeRepository repository)
 {
     this._repository = repository;
 }
 public PersonTypesController(IPersonTypeRepository personType)
 {
     _personTypeRepo = personType ??
                       throw new ArgumentNullException(nameof(personType));
 }
 public ApiPersonTypeServerRequestModelValidator(IPersonTypeRepository personTypeRepository)
 {
     this.PersonTypeRepository = personTypeRepository;
 }