public SaldoController(
     IMapper mapper,
     ISaldoQueryRepository saldoQueryRepository,
     INotificationHandler<DomainNotification> notifications,
     IMediatorHandler bus) : base(notifications, bus)
 {
     _mapper = mapper;
     _saldoQueryRepository = saldoQueryRepository;
 }
        public SaldoCommandHandler(INotificationHandler <DomainNotification> notifications,
                                   IMediatorHandler mediator,
                                   ISaldoQueryRepository saldoQueryRepository,
                                   ISaldoCommandRepository saldoCommandRepository,
                                   IUsuarioQueryRepository usuarioQueryRepository)
            : base(mediator, notifications)

        {
            _mediator               = mediator;
            _saldoQueryRepository   = saldoQueryRepository;
            _saldoCommandRepository = saldoCommandRepository;
            _usuarioQueryRepository = usuarioQueryRepository;
        }
Beispiel #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;
        }