예제 #1
0
 public Form1(ISymbolRepository symbolRepository, ISignRepository signRepository)
 {
     InitializeComponent();
     SymbolRepository = symbolRepository;
     SignRepository   = signRepository;
     Init();
 }
 public RepositoryBootstrapper(
     IExchangeFactory exchangeFactory,
     IIntervalFactory intervalFactory,
     ICurrencyFactory currencyFactory,
     ISymbolFactory symbolFactory,
     IOrderSideFactory orderSideFactory,
     IStorageTransactionFactory <HistorianDbContext> storageTransactionFactory,
     IHistorianRepository historianRepository,
     IExchangeRepository exchangeRepository,
     IIntervalRepository intervalRepository,
     ICurrencyRepository currencyRepository,
     ISymbolRepository symbolRepository,
     IOrderSideRepository orderSideRepository)
 {
     ExchangeFactory           = exchangeFactory;
     IntervalFactory           = intervalFactory;
     CurrencyFactory           = currencyFactory;
     SymbolFactory             = symbolFactory;
     OrderSideFactory          = orderSideFactory;
     StorageTransactionFactory = storageTransactionFactory;
     HistorianRepository       = historianRepository;
     ExchangeRepository        = exchangeRepository;
     IntervalRepository        = intervalRepository;
     CurrencyRepository        = currencyRepository;
     SymbolRepository          = symbolRepository;
     OrderSideRepository       = orderSideRepository;
 }
예제 #3
0
        public SymbolService(ISymbolRepository repo)
        {
            if (repo == null) throw new ArgumentNullException("The symbol repository cannot be null.");

            this.repo = repo;
            symbols = repo.GetAllSymbols();
        }
예제 #4
0
 public Rule(
     ISymbolRepository symbolRepository,
     ITradingService executionService,
     IQueryService queryService)
 {
     _symbolRepository = symbolRepository;
     _executionService = executionService;
     _queryService     = queryService;
 }
예제 #5
0
 public ResetCommand(IUserRepository userRepository,
                     ISymbolRepository symbolRepository,
                     IMessageService messageService,
                     ISocketServiceManager socketServiceManager)
 {
     _userRepository       = userRepository;
     _symbolRepository     = symbolRepository;
     _messageService       = messageService;
     _socketServiceManager = socketServiceManager;
 }
예제 #6
0
 public PriceCommand(IUserRepository userRepository,
                     IPriceRepository priceRepository,
                     ISymbolRepository symbolRepository,
                     IMessageService messageService)
 {
     _userRepository   = userRepository;
     _priceRepository  = priceRepository;
     _symbolRepository = symbolRepository;
     _messageService   = messageService;
 }
예제 #7
0
 public StatusCommand(IUserRepository userRepository,
                      ISymbolRepository symbolRepository,
                      IMessageService messageService,
                      ISocketHostedService socketService,
                      ISocketServiceManager socketServiceManager)
 {
     _userRepository       = userRepository;
     _symbolRepository     = symbolRepository;
     _messageService       = messageService;
     _socketService        = socketService;
     _socketServiceManager = socketServiceManager;
 }
예제 #8
0
 public SubscriptionCommand(IUserRepository userRepository,
                            ISubscriptionRepository subscriptionRepository,
                            ISymbolRepository symbolRepository,
                            IMessageService messageService,
                            ISocketServiceManager socketServiceManager)
 {
     _userRepository         = userRepository;
     _subscriptionRepository = subscriptionRepository;
     _symbolRepository       = symbolRepository;
     _messageService         = messageService;
     _socketServiceManager   = socketServiceManager;
 }
예제 #9
0
        public VoteTests(FomoApiFixture webApiFactoryFixture)
        {
            webApiFactoryFixture.CreateServer(FomoApiFixture.WithNoHostedServices);
            _client = webApiFactoryFixture.GetClientNotAuth();

            var mockDbOptions = new Mock <IOptionsMonitor <DbOptions> >();

            mockDbOptions.Setup(x => x.CurrentValue).Returns(new DbOptions
            {
                ConnectionString = AppTestSettings.Instance.TestDBConnectionString
            });

            _symbolRepo = new SymbolRepository(mockDbOptions.Object);
        }
예제 #10
0
 public SingleQuoteContext(
     IStockClient stockClient,
     SingleQuoteCache queryResultCache,
     ISymbolRepository symbolRepository,
     IStockDataService stockDataService,
     IStockNotificationCenter notificationCenter,
     SingleQuoteQuery query,
     ILogger <SingleQuoteContext> logger)
 {
     _stockClient        = stockClient;
     _queryResultCache   = queryResultCache;
     _symbolRepository   = symbolRepository;
     _stockDataService   = stockDataService;
     _notificationCenter = notificationCenter;
     _query  = query;
     _logger = logger;
 }
예제 #11
0
 public SymbolsController(ISymbolRepository SymbolRepository, IFiltersRepository FiltersRepository)
 {
     _ISymbolRepo  = SymbolRepository;
     _IFiltersRepo = FiltersRepository;
 }
예제 #12
0
 public SymbolSearchService(IStockClient client, ISymbolRepository symbolRepository, StockSearchCache cache)
 {
     _client           = client;
     _symbolRepository = symbolRepository;
     _cache            = cache;
 }
예제 #13
0
 public SymbolManager(ISymbolRepository symbolRepository)
 {
     _symbolRepository = symbolRepository;
 }
예제 #14
0
 public PositionService(ISymbolRepository symbolRepository)
 {
     _symbolRepository = symbolRepository;
     _htPositions      = new ConcurrentDictionary <string, Position>();
 }
예제 #15
0
 public PricingService(ISymbolRepository sr)
 {
     _allSymbols       = new List <string>();
     _symbolRepository = sr;
     _htPrices         = new ConcurrentDictionary <string, SymbolPrice>();
 }