public void SetUp()
        {
            RegisterDependencies();

            _accountAssetsManager    = Container.Resolve <AccountAssetsManager>();
            _swapService             = Container.Resolve <ICommissionService>();
            _accountAssetsRepository = Container.Resolve <IAccountAssetPairsRepository>();
            _bestPriceConsumer       = Container.Resolve <IEventChannel <BestPriceChangeEventArgs> >();
        }
Example #2
0
 public AccountAssetsManager(
     AccountAssetsCacheService accountAssetsCacheService,
     IAccountAssetPairsRepository accountAssetPairsRepository,
     MarginSettings settings,
     IClientNotifyService clientNotifyService,
     IOrderReader orderReader)
 {
     _accountAssetsCacheService = accountAssetsCacheService;
     _pairsRepository           = accountAssetPairsRepository;
     _settings            = settings;
     _clientNotifyService = clientNotifyService;
     _orderReader         = orderReader;
 }
Example #3
0
        public void OneTimeSetUp()
        {
            RegisterDependencies();

            _overnightSwapService                = Container.Resolve <IOvernightSwapService>();
            _overnightSwapCache                  = Container.Resolve <IOvernightSwapCache>();
            _quoteCacheService                   = Container.Resolve <IQuoteCacheService>();
            _ordersCache                         = Container.Resolve <OrdersCache>();
            _accountAssetsRepository             = Container.Resolve <IAccountAssetPairsRepository>();
            _fakeMarginTradingAccountsRepository = Container.Resolve <IMarginTradingAccountsRepository>();
            _overnightSwapStateRepository        = Container.Resolve <IOvernightSwapStateRepository>();
            _overnightSwapHistoryRepository      = Container.Resolve <IOvernightSwapHistoryRepository>();
            _rabbitMqNotifyService               = Container.Resolve <IRabbitMqNotifyService>();
            _accountAssetsManager                = Container.Resolve <AccountAssetsManager>();
            _bestPriceConsumer                   = Container.Resolve <IEventChannel <BestPriceChangeEventArgs> >();
        }
Example #4
0
 public AccountAssetPairsController(IAccountAssetPairsRepository accountAssetPairsRepository, IConvertService convertService)
 {
     _accountAssetPairsRepository = accountAssetPairsRepository;
     _convertService = convertService;
 }