public VictimService(
     IBaseRepository <Guid, Victim> dataVictim,
     IBaseValidation <Guid, Victim> victimValidation)
 {
     this.dataVictim       = dataVictim;
     this.victimValidation = victimValidation;
 }
 public BirthPlaceService(
     IBaseRepository <Guid, BirthPlace> dataBirthPlace,
     IBaseValidation <Guid, BirthPlace> birthPlaceValidation)
 {
     this.dataBirthPlace       = dataBirthPlace;
     this.birthPlaceValidation = birthPlaceValidation;
 }
Beispiel #3
0
 public UserService(
     IBaseRepository <Guid, User> dataTypeVictim,
     IBaseValidation <Guid, User> typeVictimValidation)
 {
     this.dataUser       = dataTypeVictim;
     this.userValidation = typeVictimValidation;
 }
 public TypeVictimService(
     IBaseRepository <Guid, TypeVictim> dataTypeVictim,
     IBaseValidation <Guid, TypeVictim> typeVictimValidation)
 {
     this.dataTypeVictim       = dataTypeVictim;
     this.typeVictimValidation = typeVictimValidation;
 }
Beispiel #5
0
 public TypeBurialService(
     IBaseRepository <Guid, TypeBurial> dataTypeBurial,
     IBaseValidation <Guid, TypeBurial> typeBurialValidation)
 {
     this.dataTypeBurial       = dataTypeBurial;
     this.typeBurialValidation = typeBurialValidation;
 }
Beispiel #6
0
 public ConscriptionPlaceService(
     IBaseRepository <Guid, ConscriptionPlace> dataConscriptionPlace,
     IBaseValidation <Guid, ConscriptionPlace> conscriptionPlaceValidation)
 {
     this.dataConscriptionPlace       = dataConscriptionPlace;
     this.conscriptionPlaceValidation = conscriptionPlaceValidation;
 }
Beispiel #7
0
 public DutyStationService(
     IBaseRepository <Guid, DutyStation> dataDutyStation,
     IBaseValidation <Guid, DutyStation> dutyStationValidation)
 {
     this.dataDutyStation       = dataDutyStation;
     this.dutyStationValidation = dutyStationValidation;
 }
Beispiel #8
0
 public AttachmentFormService(
     FileHelper fileHelper,
     IBaseRepository <Guid, AttachmentForm> dataAttachmentForm,
     IBaseValidation <Guid, AttachmentForm> attachmentFormValidation)
 {
     this.fileHelper               = fileHelper;
     this.dataAttachmentForm       = dataAttachmentForm;
     this.attachmentFormValidation = attachmentFormValidation;
 }
Beispiel #9
0
 public AttachmentBurialService(
     FileHelper fileHelper,
     IBaseRepository <Guid, AttachmentBurial> dataAttachmentBurial,
     IBaseValidation <Guid, AttachmentBurial> attachmentBurialValidation)
 {
     this.fileHelper                 = fileHelper;
     this.dataAttachmentBurial       = dataAttachmentBurial;
     this.attachmentBurialValidation = attachmentBurialValidation;
 }
Beispiel #10
0
        private void MockData(
            bool isExistConscriptionPlace     = default,
            bool isExistConscriptionPlaceById = default
            )
        {
            _serviceConscriptionPlace.Setup(x => x.ExistAsync(It.IsAny <ConscriptionPlace>(), It.IsAny <CancellationToken>())).ReturnsAsync(isExistConscriptionPlace);
            _serviceConscriptionPlace.Setup(x => x.ExistByIdAsync(It.IsAny <Guid>(), It.IsAny <CancellationToken>())).ReturnsAsync(isExistConscriptionPlaceById);

            _validation = new ConscriptionPlaceValidation(_serviceConscriptionPlace.Object);
        }
Beispiel #11
0
        private void MockData(
            bool isExistTypeVictim     = false,
            bool isExistTypeVictimById = false
            )
        {
            _serviceTypeVictim.Setup(x => x.ExistAsync(It.IsAny <TypeVictim>(), It.IsAny <CancellationToken>())).ReturnsAsync(isExistTypeVictim);
            _serviceTypeVictim.Setup(x => x.ExistByIdAsync(It.IsAny <Guid>(), It.IsAny <CancellationToken>())).ReturnsAsync(isExistTypeVictimById);

            _validation = new TypeVictimValidation(_serviceTypeVictim.Object);
        }
Beispiel #12
0
        private void MockData(
            bool isExistTypeBurial     = default,
            bool isExistTypeBurialById = default
            )
        {
            _serviceTypeBurial.Setup(x => x.ExistAsync(It.IsAny <TypeBurial>(), It.IsAny <CancellationToken>())).ReturnsAsync(isExistTypeBurial);
            _serviceTypeBurial.Setup(x => x.ExistByIdAsync(It.IsAny <Guid>(), It.IsAny <CancellationToken>())).ReturnsAsync(isExistTypeBurialById);

            _validation = new TypeBurialValidation(_serviceTypeBurial.Object);
        }
Beispiel #13
0
        private void MockData(
            bool isExistDutyStation     = default,
            bool isExistDutyStationById = default
            )
        {
            _serviceDutyStation.Setup(x => x.ExistAsync(It.IsAny <DutyStation>(), It.IsAny <CancellationToken>())).ReturnsAsync(isExistDutyStation);
            _serviceDutyStation.Setup(x => x.ExistByIdAsync(It.IsAny <Guid>(), It.IsAny <CancellationToken>())).ReturnsAsync(isExistDutyStationById);

            _validation = new DutyStationValidation(_serviceDutyStation.Object);
        }
        private void MockData(
            bool isExistForm     = default,
            bool isExistFormById = default
            )
        {
            _serviceForm.Setup(x => x.ExistAsync(It.IsAny <Form>(), It.IsAny <CancellationToken>())).ReturnsAsync(isExistForm);
            _serviceForm.Setup(x => x.ExistByIdAsync(It.IsAny <Guid>(), It.IsAny <CancellationToken>())).ReturnsAsync(isExistFormById);

            _validation = new FormValidation(_serviceForm.Object);
        }
        private void MockData(
            bool isExsitAttachmentBurial = default,
            bool isExsitBurial           = default
            )
        {
            _serviceAttachmentBurial.Setup(x => x.ExistByIdAsync(It.IsAny <Guid>(), It.IsAny <CancellationToken>())).ReturnsAsync(isExsitAttachmentBurial);

            _serviceBurial.Setup(x => x.ExistByIdAsync(It.IsAny <Guid>(), It.IsAny <CancellationToken>())).ReturnsAsync(isExsitBurial);

            _validation = new AttachmentBurialValidation(_serviceAttachmentBurial.Object, _serviceBurial.Object);
        }
Beispiel #16
0
 protected BaseController([NotNull] IBaseService <TEntity> service,
                          IBaseValidation <TEntity> validation,
                          ILogger <TEntity> logger,
                          IHttpContextAccessor httpContextAccessor,
                          string friendlyTableName = "record")
 {
     _service             = service;
     _validation          = validation;
     _logger              = logger;
     _httpContextAccessor = httpContextAccessor;
     _friendlyTableName   = friendlyTableName;
 }
 public ContatoService(IContatoRepository repository, IBaseValidation <Contato> validation) : base(repository, validation)
 {
     _repository = repository;
 }
Beispiel #18
0
 public ModalidadeService(IModalidadeRepository repository, IBaseValidation <Modalidade> validation) : base(repository, validation)
 {
     _repository = repository;
 }
 public ColaboradorService(IColaboradorRepository repository, IBaseValidation <Colaborador> validation) : base(repository, validation)
 {
     _repository = repository;
 }
Beispiel #20
0
 public DespesaReceitaService(IDespesaReceitaRepository repository, IBaseValidation <DespesaReceita> validation) : base(repository, validation)
 {
     _repository = repository;
 }
 public EmpresaService(IEmpresaRepository repository, IBaseValidation <Empresa> validation) : base(repository, validation)
 {
     _repository = repository;
 }
Beispiel #22
0
 public RiscoCoronarianoService(IRiscoCoronarianoRepository repository, IBaseValidation <RiscoCoronariano> validation) : base(repository, validation)
 {
     _repository = repository;
 }
 public CategoriaService(ICategoriaRepository repository, IBaseValidation <Categoria> validation) : base(repository, validation)
 {
     _repository = repository;
 }
Beispiel #24
0
 public PermissaoUsuarioService(IPermissaoUsuarioRepository repository, IBaseValidation <PermissaoUsuario> validation) : base(repository, validation)
 {
     _repository = repository;
 }
Beispiel #25
0
 public ExercicioTreinoService(IExercicioTreinoRepository repository, IBaseValidation <ExercicioTreino> validation) : base(repository, validation)
 {
     _repository = repository;
 }
Beispiel #26
0
 public PARQService(IPARQRepository repository, IBaseValidation <PARQ> validation) : base(repository, validation)
 {
     _repository = repository;
 }
Beispiel #27
0
 public ParametroService(IParametroRepository repository, IBaseValidation <Parametro> validation) : base(repository, validation)
 {
     _repository = repository;
 }
Beispiel #28
0
 public CaracteristicaService(ICaracteristicaRepository repository, IBaseValidation <Caracteristica> validation) : base(repository, validation)
 {
     _repository = repository;
 }
Beispiel #29
0
 public MassaMuscularService(IMassaMuscularRepository repository, IBaseValidation <MassaMuscular> validation) : base(repository, validation)
 {
     _repository = repository;
 }
Beispiel #30
0
 public FabricanteService(IFabricanteRepository repository, IBaseValidation <Fabricante> validation) : base(repository, validation)
 {
     _repository = repository;
 }