예제 #1
0
 public PriceComparisonJob(IProductService productService, IExternalProductService externalProductService, IMailService mailService, IPriceHistoryService priceHistoryService, IMessageService messageService)
 {
     _productService         = productService;
     _externalProductService = externalProductService;
     _priceHistoryService    = priceHistoryService;
     _mailService            = mailService;
     _messageService         = messageService;
 }
예제 #2
0
        public ProductController()
        {
            _repository = new SoldOutRepository();

            _statsRepository = new StatsRepository();

            _priceHistoryService = new PriceHistoryService(_repository);
        }
예제 #3
0
        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();
        }
예제 #4
0
 public CarsController(IMapper mapper, ICarService carService, IPriceHistoryService priceHistoryService)
 {
     _mapper              = mapper;
     _carService          = carService;
     _priceHistoryService = priceHistoryService;
 }
예제 #5
0
 public PriceHistoriesController(IPriceHistoryService priceHistoryService)
 {
     _priceHistoryService = priceHistoryService;
 }
예제 #6
0
 public PriceHistoryController(IErrorService errorService, IPriceHistoryService priceHistoryService) :
     base(errorService)
 {
     this._priceHistoryService = priceHistoryService;
 }