public CategoryDiscountCreationReceiver(IUserRepository userRepository, IRabbimqSettings rabbimqSettings, INotificationService notificationService)
        {
            this.userRepository      = userRepository;
            this.rabbimqSettings     = rabbimqSettings;
            this.notificationService = notificationService;

            var factory = new ConnectionFactory()
            {
                HostName = rabbimqSettings.Host,
                UserName = rabbimqSettings.Username,
                Password = rabbimqSettings.Password
            };

            _connection = factory.CreateConnection();
            _channel    = _connection.CreateModel();

            _channel.QueueDeclare(queue: rabbimqSettings.CategoryDiscountQueue, durable: true, exclusive: false, autoDelete: false, arguments: null);
            _channel.QueueBind(queue: rabbimqSettings.CategoryDiscountQueue, exchange: rabbimqSettings.CategoryDiscountExchange, routingKey: rabbimqSettings.CategoryDiscountRoutingkey, arguments: null);
        }
 public NotificationService(IRabbimqSettings rabbimqSettings)
 {
     this.rabbimqSettings = rabbimqSettings;
 }