Ejemplo n.º 1
0
 public AgenciasController(IAgenciaRepository agenciaRepository, IBancoRepository bancoRepository, IPessoaJuridicaRepository pessoaJuridicaRepository, ApplicationContext contexto)
 {
     this.agenciaRepository        = agenciaRepository;
     this.bancoRepository          = bancoRepository;
     this.pessoaJuridicaRepository = pessoaJuridicaRepository;
     this.contexto = contexto;
 }
 public ContaInvestimentoService(IExtratoInvetimentoRepository extratoInvestimentoRepository, IContaInvestimentoRepository contaInvestimentoRepository, IAgenciaRepository agenciaRepository, IContaRepository contaRepository)
 {
     ExtratoInvestimentoRepository = extratoInvestimentoRepository;
     ContaInvestimentoRepository   = contaInvestimentoRepository;
     AgenciaRepository             = agenciaRepository;
     ContaRepository = contaRepository;
 }
Ejemplo n.º 3
0
 public AgenciaAppService(IAgenciaRepository agenciaRepository,
                          IParametrosFinanceiroRepository parametrosFinanceiroRepository,
                          MessageQueue messageQueue)
     : base(messageQueue)
 {
     this.agenciaRepository = agenciaRepository;
     this.parametrosFinanceiroRepository = parametrosFinanceiroRepository;
 }
Ejemplo n.º 4
0
 public AgenciaService(IEnderecoRepository enderecorepository, IAgenciaRepository agenciarepository, IAgenciaUsuarioRepository agenciausuariorepository,
                       IClaimsRepository claimsRepository)
 {
     _enderecorepository       = enderecorepository;
     _agenciarepository        = agenciarepository;
     _agenciausuariorepository = agenciausuariorepository;
     _claimrepository          = claimsRepository;
 }
 public AgenciaCommandHandler(IAgenciaRepository agenciaRepository,
                              IUnitOfWork uow,
                              IBus bus,
                              IDomainNotificationHandler <DomainNotification> notifications)
     : base(uow, bus, notifications)
 {
     _agenciaRepository = agenciaRepository;
     _bus = bus;
 }
Ejemplo n.º 6
0
 public ContasCorrentesController(ApplicationContext contexto, IContaCorrenteRepository contaCorrenteRepository, IEmpresaRepository empresaRepository, IFilialRepository filialRepository, IBancoRepository bancoRepository, IAgenciaRepository agenciaRepository)
 {
     this.contexto = contexto;
     this.contaCorrenteRepository = contaCorrenteRepository;
     this.empresaRepository       = empresaRepository;
     this.filialRepository        = filialRepository;
     this.bancoRepository         = bancoRepository;
     this.agenciaRepository       = agenciaRepository;
 }
Ejemplo n.º 7
0
 public PolizaService(IAgenciaRepository agenciaRepository, ICiudadRepository ciudadRepository,
                      IClienteRepository clienteRepository, IPolizaRepository polizaRepository,
                      ITipoCubrimientoRepository tipoCubrimientoRepository, ITipoRiesgoRepository tipoRiesgoRepository,
                      IMapper mapper)
 {
     _agenciaRepository         = agenciaRepository;
     _ciudadRepository          = ciudadRepository;
     _clienteRepository         = clienteRepository;
     _polizaRepository          = polizaRepository;
     _tipoCubrimientoRepository = tipoCubrimientoRepository;
     _tipoRiesgoRepository      = tipoRiesgoRepository;
     _mapper = mapper;
 }
Ejemplo n.º 8
0
 public HomeController(IBancoRepository bancoRepository, IEmpresaRepository empresaRepository, IFilialRepository filialRepository, IPessoaJuridicaRepository pessoaJuridicaRepository, IPessoaFisicaRepository pessoaFisicaRepository, IAgenciaRepository agenciaRepository, IUsuarioRepository usuarioRepository, IContaCorrenteRepository contaCorrenteRepository, IPostoDeCaixaRepository postoDeCaixaRepository, IMovimentoBancarioRepository movimentoBancarioRepository, ApplicationContext contexto)
 {
     this.bancoRepository             = bancoRepository;
     this.empresaRepository           = empresaRepository;
     this.filialRepository            = filialRepository;
     this.pessoaJuridicaRepository    = pessoaJuridicaRepository;
     this.pessoaFisicaRepository      = pessoaFisicaRepository;
     this.agenciaRepository           = agenciaRepository;
     this.usuarioRepository           = usuarioRepository;
     this.contaCorrenteRepository     = contaCorrenteRepository;
     this.postoDeCaixaRepository      = postoDeCaixaRepository;
     this.movimentoBancarioRepository = movimentoBancarioRepository;
     this.contexto = contexto;
 }
Ejemplo n.º 9
0
 public TrabalhoController(IEmailServices emailServices, ITrabalhoRepository trabalhoRepository, UserManager <ApplicationUser> userManager, IAccountRepository accountRepository, IEventoRepository eventoRepository, IAreaRepository areaRepository, IAutorRepository autorRepository, IAgenciaRepository agenciaRepository, IAvaliacaoRepository avaliacaoRepository, ITrabalhoServices trabalhoServices, IAreaServices areaServices)
 {
     _emailServices       = emailServices;
     _trabalhoRepository  = trabalhoRepository;
     _userManager         = userManager;
     _accountRepository   = accountRepository;
     _eventoRepository    = eventoRepository;
     _areaRepository      = areaRepository;
     _autorRepository     = autorRepository;
     _agenciaRepository   = agenciaRepository;
     _avaliacaoRepository = avaliacaoRepository;
     _trabalhoServices    = trabalhoServices;
     _areaServices        = areaServices;
 }
        public AgenciaConsistenteParaCadastroValidation(IAgenciaRepository agenciarepository)
        {
            var cnpjduplicado = new CnpjUnicoSpecification(agenciarepository);
            var cnpjFormato   = new CnpjFormatoCorretoSpecification();
            var cnpjTamanho   = new CnpjTamanhoIncorretoSpecification();
            var nomeFantasia  = new NomeFantasiaFormatoCorretoSpecification();
            var razaoSocial   = new RazaoSocialFormatoSpecification();

            base.Add("cnpjduplicado", new Rule <Agencia>(cnpjduplicado, "CNPJ já cadastrado."));
            base.Add("cnpjFormato", new Rule <Agencia>(cnpjFormato, "O CNPJ está em formato incorreto."));
            base.Add("cnpjTamanho", new Rule <Agencia>(cnpjTamanho, "O CNPJ está em tamanho incorreto."));
            base.Add("nomeFantasia", new Rule <Agencia>(nomeFantasia, "O Nome Fantasia deve ter pelo meno 2 caracteres."));
            base.Add("razaoSocial", new Rule <Agencia>(razaoSocial, "A Razão Social deve dete ter pelo menos 2 caracteres."));
        }
Ejemplo n.º 11
0
 public AdministradorController(ITrabalhoRepository trabalhoRepository, UserManager <ApplicationUser> userManager, IAccountRepository accountRepository, IEventoRepository eventoRepository, IAreaRepository areaRepository, IAutorRepository autorRepository, IAgenciaRepository agenciaRepository, IAdministradorRepository administradorRepository, ILocalizacaoRepository localizacaoRepository, IEmailServices emailServices, IAdministradorServices administradorServices, ILocalizacaoServices localizacaoServices)
 {
     _trabalhoRepository      = trabalhoRepository;
     _userManager             = userManager;
     _accountRepository       = accountRepository;
     _eventoRepository        = eventoRepository;
     _areaRepository          = areaRepository;
     _autorRepository         = autorRepository;
     _agenciaRepository       = agenciaRepository;
     _administradorRepository = administradorRepository;
     _localizacaoRepository   = localizacaoRepository;
     _emailServices           = emailServices;
     _administradorServices   = administradorServices;
     _localizacaoServices     = localizacaoServices;
 }
Ejemplo n.º 12
0
 public DeveExistirApenasUmaAgenciaSpecification(Agencia entidade, IAgenciaRepository agenciaRepository) : base(entidade)
 {
     _agenciaRepository = agenciaRepository ?? throw new ArgumentNullException(nameof(agenciaRepository));
 }
 public AgenciaService(IAgenciaRepository agencias)
 {
     _Agencias = agencias;
 }
Ejemplo n.º 14
0
 public AgenciaAppService(IBus bus, IMapper mapper, IAgenciaRepository agenciaRepository)
 {
     _bus               = bus;
     _mapper            = mapper;
     _agenciaRepository = agenciaRepository;
 }
Ejemplo n.º 15
0
 public AgenciaController(IAgenciaRepository agenciaRepository)
 {
     _agenciaRepository = agenciaRepository;
 }
Ejemplo n.º 16
0
 public CnpjUnicoSpecification(IAgenciaRepository agenciarepositorio)
 {
     _agenciarepositorio = agenciarepositorio;
 }
Ejemplo n.º 17
0
 public AgenciaController(INotificationHandler <DomainNotification> notifications, IUsuario usuario, IMediatorHandler mediator, IAgenciaRepository agenciaRepository, IMapper mapper) : base(notifications, usuario, mediator)
 {
     _agenciaRepository = agenciaRepository ?? throw new ArgumentNullException(nameof(agenciaRepository));
     _mapper            = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Ejemplo n.º 18
0
 public AgenciaController(IAgenciaRepository agencia)
 {
     _agencia = agencia;
 }
 public ContaCorrenteService(IAgenciaRepository agenciaRepository, IContaRepository contaRepository, IExtratoRepository extratoRepository)
 {
     AgenciaRepository = agenciaRepository;
     ContaRepository   = contaRepository;
     ExtratoRepository = extratoRepository;
 }
Ejemplo n.º 20
0
        public AgenciaEstaConsistenciaParaCadastroValidation(Agencia entidade, IAgenciaRepository agenciaRepository) : base(entidade)
        {
            _agenciaRepository = agenciaRepository ?? throw new ArgumentNullException(nameof(agenciaRepository));

            Validar();
        }