public ObterNotaFiscalQuery(ObterNotaFiscalValidador obterNotaFiscalValidador, IObterPedidosQuery obterPedidosQuery, IObterClientesQuery obterClientesQuery, IObterFreteQuery calcularFreteQuery) { this.obterNotaFiscalValidador = obterNotaFiscalValidador; this.obterPedidosQuery = obterPedidosQuery; this.obterClientesQuery = obterClientesQuery; this.calcularFreteQuery = calcularFreteQuery; }
public PedidosController(ICadastrarPedidoCommand cadastrarCommand, IAtualizarPedidoCommand atualizarCommand, IApagarPedidoCommand apagarCommand, IObterPedidosQuery query, PersistenciaContexto persistencia, ILogger <PedidosController> logger) { this.cadastrarCommand = cadastrarCommand; this.atualizarCommand = atualizarCommand; this.apagarCommand = apagarCommand; this.query = query; this.persistencia = persistencia; this.logger = logger; }