public DeleteClienteByIdCommandHandler(IClienteRepositoryAsync clienteRepository, IClienteEnderecoRepositoryAsync clienteEnderecoRepository,
                                        IEnderecoRepositoryAsync EnderecoRepository)
 {
     _clienteRepository         = clienteRepository;
     _clienteEnderecoRepository = clienteEnderecoRepository;
     _EnderecoRepository        = EnderecoRepository;
 }
Esempio n. 2
0
        public ClienteService(IClienteRepositoryAsync iclienterepo, IClienteEnderecoRepositoryAsync clienteEnderecoRepositoryAsync, IEnderecoRepositoryAsync enderecoService)
        {
            _clienterepository = iclienterepo;
            _clientEenderecoRepositoryAsync = clienteEnderecoRepositoryAsync;
            _enderecoRepository             = enderecoService;

            _dbContext = new ApplicationDbContext();
        }
Esempio n. 3
0
 public ClienteService(IClienteRepositoryAsync clienteRepository, IClienteEnderecoRepositoryAsync clienteEnderecoRepositoryAsync,
                       IEnderecoRepositoryAsync enderecoRepository, ILogger <ClienteService> logger,
                       ApplicationDbContext dbContext, IEnderecoService enderecoService)
 {
     _clienterepository = clienteRepository;
     _clientEenderecoRepositoryAsync = clienteEnderecoRepositoryAsync;
     _enderecoRepository             = enderecoRepository;
     _logger          = logger;
     _dbContext       = dbContext;
     _enderecoService = enderecoService;
 }
Esempio n. 4
0
 public RetornarClientePorIdHandler(IClienteRepositoryAsync clienteRepository)
 {
     _ClienteRepository = clienteRepository;
 }