public EnderecosController(
     IMapper mapper,
     IEnderecoQueryRepository enderecoQueryRepository,
     INotificationHandler <DomainNotification> notifications,
     IMediatorHandler bus) : base(notifications, bus)
 {
     _mapper = mapper;
     _enderecoQueryRepository = enderecoQueryRepository;
 }
示例#2
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;
        }
示例#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;
        }