public HostedServiceMessage(ISalesService salesService, IUserWithLessOfferService userWithLessOfferService,
                                    IConfiguration configuration, ILogger <HostedServiceMessage> logger,
                                    ILogMessage logMessage)
        {
            ServiceBusInfo serviceBusInfo = configuration.GetSection("ServiceBus").Get <ServiceBusInfo>();

            _salesService             = salesService;
            _userWithLessOfferService = userWithLessOfferService;
            _logMessage = logMessage;

            _logger = logger;

            _subscriptionClientUserWithLessOffer = new SubscriptionClient(serviceBusInfo.ConnectionString, "userwithlessoffer", "Dashboard");
            _subscriptionClientOrderChanged      = new SubscriptionClient(serviceBusInfo.ConnectionString, "orderchanged", "Dashboard");
            _subscriptionClientNewOrder          = new SubscriptionClient(serviceBusInfo.ConnectionString, "neworder", "Dashboard");
        }
 public DashboardController(ISalesService salesService, IUserWithLessOfferService userWithLessOfferService, IMapper mapper)
 {
     _salesService             = salesService;
     _userWithLessOfferService = userWithLessOfferService;
     _mapper = mapper;
 }