Exemplo n.º 1
0
 public AtualizarLivroUseCase(IMapper mapper,
                              INotificador notificador,
                              ILivroRepository livroRepository,
                              IBuscarEditoraPorIdUseCase buscarEditoraUseCase,
                              IBuscarAutorPorIdUseCase buscarAutorUseCase)
 {
     _mapper               = mapper;
     _notificador          = notificador;
     _livroRepository      = livroRepository;
     _buscarEditoraUseCase = buscarEditoraUseCase;
     _buscarAutorUseCase   = buscarAutorUseCase;
 }
Exemplo n.º 2
0
 public EditorasController(IInserirEditoraUseCase inserirEditoraUseCase,
                           IBuscarEditoraPorIdUseCase buscarEditoraPorIdUseCase,
                           IResponseFormatter formatter,
                           IListarEditorasUseCase listarEditorasUseCase,
                           IAtualizarEditoraUseCase atualizarEditoraUseCase,
                           IExcluirEditoraUseCase excluirEditoraUseCase)
 {
     _inserirEditoraUseCase     = inserirEditoraUseCase;
     _buscarEditoraPorIdUseCase = buscarEditoraPorIdUseCase;
     _formatter               = formatter;
     _listarEditorasUseCase   = listarEditorasUseCase;
     _atualizarEditoraUseCase = atualizarEditoraUseCase;
     _excluirEditoraUseCase   = excluirEditoraUseCase;
 }