Ejemplo n.º 1
0
        public EnderecoCommandHandler(INotificationHandler <DomainNotification> notifications,
                                      IMediatorHandler mediator,
                                      IEnderecoQueryRepository enderecoQueryRepository,
                                      IEnderecoCommandRepository enderecoCommandRepository,
                                      IUsuarioQueryRepository usuarioQueryRepository)
            : base(mediator, notifications)

        {
            _mediator = mediator;
            _enderecoQueryRepository   = enderecoQueryRepository;
            _enderecoCommandRepository = enderecoCommandRepository;
            _usuarioQueryRepository    = usuarioQueryRepository;
        }
Ejemplo n.º 2
0
        public SaldoCommandHandler(INotificationHandler <DomainNotification> notifications,
                                   IMediatorHandler mediator,
                                   ISaldoQueryRepository saldoQueryRepository,
                                   ISaldoCommandRepository saldoCommandRepository,
                                   IUsuarioQueryRepository usuarioQueryRepository)
            : base(mediator, notifications)

        {
            _mediator               = mediator;
            _saldoQueryRepository   = saldoQueryRepository;
            _saldoCommandRepository = saldoCommandRepository;
            _usuarioQueryRepository = usuarioQueryRepository;
        }
Ejemplo n.º 3
0
        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;
        }