public SaldoCommandHandler(INotificationHandler <DomainNotification> notifications, IMediatorHandler mediator, ISaldoQueryRepository saldoQueryRepository, ISaldoCommandRepository saldoCommandRepository, IUsuarioQueryRepository usuarioQueryRepository) : base(mediator, notifications) { _mediator = mediator; _saldoQueryRepository = saldoQueryRepository; _saldoCommandRepository = saldoCommandRepository; _usuarioQueryRepository = usuarioQueryRepository; }
public PedidoCommandHandler(INotificationHandler <DomainNotification> notifications, IMediatorHandler mediator, IPedidoQueryRepository pedidoQueryRepository, IPedidoCommandRepository pedidoCommandRepository, IProdutoQueryRepository produtoQueryRespository, IUsuarioQueryRepository usuarioQueryRepository, ISaldoQueryRepository saldoQueryRepository, ISaldoCommandRepository saldoCommandRepository, IEnderecoQueryRepository enderecoQueryRepository, PedidoValidator pedidoValidator) : base(mediator, notifications) { _mediator = mediator; _pedidoQueryRepository = pedidoQueryRepository; _pedidoCommandRepository = pedidoCommandRepository; _produtoQueryRepository = produtoQueryRespository; _usuarioQueryRepository = usuarioQueryRepository; _saldoQueryRepository = saldoQueryRepository; _pedidoValidator = pedidoValidator; _saldoCommandRepository = saldoCommandRepository; _enderecoQueryRepository = enderecoQueryRepository; }