public PriceComparisonJob(IProductService productService, IExternalProductService externalProductService, IMailService mailService, IPriceHistoryService priceHistoryService, IMessageService messageService) { _productService = productService; _externalProductService = externalProductService; _priceHistoryService = priceHistoryService; _mailService = mailService; _messageService = messageService; }
public ProductController() { _repository = new SoldOutRepository(); _statsRepository = new StatsRepository(); _priceHistoryService = new PriceHistoryService(_repository); }
private static void SetupTimers() { var resolver = GlobalConfiguration.Configuration.DependencyResolver; _priceHistoryService = (IPriceHistoryService)resolver.GetService(typeof(IPriceHistoryService)); _sendNotificationTimer = new MidnightTimer(); //new IntervalTimer(5); _sendNotificationTimer.Elapsed += SendNotification; _sendNotificationTimer.Start(); }
public CarsController(IMapper mapper, ICarService carService, IPriceHistoryService priceHistoryService) { _mapper = mapper; _carService = carService; _priceHistoryService = priceHistoryService; }
public PriceHistoriesController(IPriceHistoryService priceHistoryService) { _priceHistoryService = priceHistoryService; }
public PriceHistoryController(IErrorService errorService, IPriceHistoryService priceHistoryService) : base(errorService) { this._priceHistoryService = priceHistoryService; }