Ejemplo n.º 1
0
 public PricingHub(
     IPriceLastValueCache priceLastValueCache,
     ICurrencyPairRepository currencyPairRepository,
     IContextHolder contextHolder)
 {
     _priceLastValueCache    = priceLastValueCache;
     _currencyPairRepository = currencyPairRepository;
     _contextHolder          = contextHolder;
 }
Ejemplo n.º 2
0
 public PricingHub(
     IPriceLastValueCache priceLastValueCache,
     ICurrencyPairRepository currencyPairRepository,
     IContextHolder contextHolder)
 {
     _priceLastValueCache = priceLastValueCache;
     _currencyPairRepository = currencyPairRepository;
     _contextHolder = contextHolder;
 }
Ejemplo n.º 3
0
 public PriceFeedSimulator(
     ICurrencyPairRepository currencyPairRepository,
     IPricePublisher pricePublisher,
     IPriceLastValueCache priceLastValueCache)
 {
     _currencyPairRepository = currencyPairRepository;
     _pricePublisher = pricePublisher;
     _priceLastValueCache = priceLastValueCache;
     _random = new Random(_currencyPairRepository.GetHashCode());
 }
Ejemplo n.º 4
0
 public Cleaner(ITradeRepository tradeRepository, IAnalyticsService analyticsService,
     IExecutionService executionService, IPriceLastValueCache priceLastValueCache,
     ISchedulerService scheduler)
 {
     _tradeRepository = tradeRepository;
     _analyticsService = analyticsService;
     _executionService = executionService;
     _priceLastValueCache = priceLastValueCache;
     _scheduler = scheduler;
 }
Ejemplo n.º 5
0
 public PriceFeedSimulator(
     ICurrencyPairRepository currencyPairRepository,
     IPricePublisher pricePublisher,
     IPriceLastValueCache priceLastValueCache)
 {
     _currencyPairRepository = currencyPairRepository;
     _pricePublisher         = pricePublisher;
     _priceLastValueCache    = priceLastValueCache;
     _random = new Random(_currencyPairRepository.GetHashCode());
 }
Ejemplo n.º 6
0
 public Cleaner(ITradeRepository tradeRepository, IAnalyticsService analyticsService,
                IExecutionService executionService, IPriceLastValueCache priceLastValueCache,
                ISchedulerService scheduler)
 {
     _tradeRepository     = tradeRepository;
     _analyticsService    = analyticsService;
     _executionService    = executionService;
     _priceLastValueCache = priceLastValueCache;
     _scheduler           = scheduler;
 }
Ejemplo n.º 7
0
        public void SetUp()
        {
            _tradeRepo = Substitute.For<ITradeRepository>();
            _analyticsService = Substitute.For<IAnalyticsService>();
            _executionService = Substitute.For<IExecutionService>();
            _lastValueCache = Substitute.For<IPriceLastValueCache>();

            _scheduler = new HistoricalScheduler();
            _scheduler.AdvanceTo(DateTimeOffset.Now);

            _schedulerService = Substitute.For<ISchedulerService>();
            _schedulerService.ThreadPool.Returns(_scheduler);
        }
Ejemplo n.º 8
0
        public void SetUp()
        {
            _tradeRepo        = Substitute.For <ITradeRepository>();
            _analyticsService = Substitute.For <IAnalyticsService>();
            _executionService = Substitute.For <IExecutionService>();
            _lastValueCache   = Substitute.For <IPriceLastValueCache>();

            _scheduler = new HistoricalScheduler();
            _scheduler.AdvanceTo(DateTimeOffset.Now);

            _schedulerService = Substitute.For <ISchedulerService>();
            _schedulerService.ThreadPool.Returns(_scheduler);
        }