예제 #1
0
 public DepositosController(INotificationHandler <DomainNotification> notifications, IUsuario usuario, IMediatorHandler mediator, IDepositoRepository depositoRepository, IMapper mapper) : base(notifications, usuario, mediator)
 {
     _depositoRepository = depositoRepository ?? throw new ArgumentNullException(nameof(mediator));
     _mediatorHandler    = mediator ?? throw new ArgumentNullException(nameof(mediator));
     _mapper             = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _usuario            = usuario ?? throw new ArgumentNullException(nameof(usuario));
 }
예제 #2
0
 public DepositoCommandHandler(IMediatorHandler mediator, INotificationHandler <DomainNotification> notifications, IDepositoRepository depositoRepository, IContaRepository contaRepository, IClienteRepository clienteRepository, IUsuario usuario) : base(mediator, notifications)
 {
     _depositoRepository = depositoRepository ?? throw new ArgumentNullException(nameof(depositoRepository));
     _contaRepository    = contaRepository ?? throw new ArgumentNullException(nameof(contaRepository));
     _clienteRepository  = clienteRepository ?? throw new ArgumentNullException(nameof(clienteRepository));
     _usuario            = usuario ?? throw new ArgumentNullException(nameof(usuario));
 }
 public DepositoService(IDepositoRepository planillaRepository, ILoggerManager logger, IMapper mapper)
 {
     this._depositoRepository = planillaRepository;
     _logger = logger;
     _mapper = mapper;
 }
 public DepositoController(IDepositoRepository depositoRepository, ICorrentistaRepository correntistaRepository)
 {
     _depositoRepository    = depositoRepository;
     _correntistaRepository = correntistaRepository;
 }