public DiaryController(IMapper mapper, IDiaryNoteRepository repository, EventBusRabbitMqProducer eventBus) { _mapper = mapper; _eventBus = eventBus; _repository = repository; }
public EventBusRabbitMqConsumer(IRabbitMqConnection connection, IDiaryNoteRepository repository) { _connection = connection; _repository = repository; }