Ejemplo n.º 1
0
 public CandleProcessing(IIndicatorsRepositiry indicatorsRepositiry,
                         IIndicatorsValueRepository indicatorsValueRepository,
                         ICandleRepository candleRepository,
                         IIndicatorBuilder indicatorBuilder,
                         IPublisher publisher,
                         ILogger <CandleProcessing> logger)
 {
     _indicatorsRepositiry      = indicatorsRepositiry;
     _indicatorsValueRepository = indicatorsValueRepository;
     _candleRepository          = candleRepository;
     _indicatorBuilder          = indicatorBuilder;
     _publisher = publisher;
     _logger    = logger;
 }
Ejemplo n.º 2
0
 public RealTimeTraderService(IStrategy strategy,
                              IUserBalanceService userBalanceService,
                              IExchangeProvider exchangeProvider,
                              ICandleRepository candleRepository,
                              IEmailService emailService,
                              IOptions <CryptoTradingOptions> options)
 {
     _strategy             = strategy;
     _userBalanceService   = userBalanceService;
     _exchangeProvider     = exchangeProvider;
     _candleRepository     = candleRepository;
     _emailService         = emailService;
     _cryptoTradingOptions = options.Value;
 }
Ejemplo n.º 3
0
 public ImportRepository(IExchangeProvider exchangeProvider, ICandleRepository candleDbRepository)
 {
     _exchangeProvider   = exchangeProvider;
     _candleDbRepository = candleDbRepository;
 }
Ejemplo n.º 4
0
        public TesterController CreateTestManagerController(IInstanceRepository instanceRepository, ICandleRepository candleRepository)
        {
            // Организация - создание имитированного хранилища данных
            Mock<IInstanceRepository> mockInstance = new Mock<IInstanceRepository>();
            Mock<ICandleRepository> mockCandle = new Mock<ICandleRepository>();

            if (instanceRepository == null)
                instanceRepository = mockInstance.Object;
            if (candleRepository == null)
                candleRepository = mockCandle.Object;

            // Организация - создание контроллера
            TesterController controller = new TesterController(instanceRepository);

            return controller;
        }
Ejemplo n.º 5
0
 public CandleDataController(ICandleRepository candleRepository)
 {
     _candleRepository = candleRepository;
 }
Ejemplo n.º 6
0
 public CandleDbService(ICandleRepository candleDbRepository)
 {
     _candleDbRepository = candleDbRepository;
 }
Ejemplo n.º 7
0
 public CandleController(ICandleRepository candleRepository, ICategoryRepository categoryRepository)
 {
     _candleRepository   = candleRepository;
     _categoryRepository = categoryRepository;
 }
Ejemplo n.º 8
0
 public ShoppingCartController(ICandleRepository candleRepository, ShoppingCart shoppingCart)
 {
     _candleRepository = candleRepository;
     _shoppingCart     = shoppingCart;
 }
Ejemplo n.º 9
0
 public HomeController(ICandleRepository candleRepository, ILogger <HomeController> logger)
 {
     _logger           = logger;
     _candleRepository = candleRepository;
 }