public OvernightSwapService( IOvernightSwapCache overnightSwapCache, IAccountAssetsCacheService accountAssetsCacheService, IAccountsCacheService accountsCacheService, ICommissionService commissionService, IOvernightSwapStateRepository overnightSwapStateRepository, IOvernightSwapHistoryRepository overnightSwapHistoryRepository, IOrderReader orderReader, IThreadSwitcher threadSwitcher, IDateService dateService, AccountManager accountManager, MarginSettings marginSettings, ILog log) { _overnightSwapCache = overnightSwapCache; _accountAssetsCacheService = accountAssetsCacheService; _accountsCacheService = accountsCacheService; _commissionService = commissionService; _overnightSwapStateRepository = overnightSwapStateRepository; _overnightSwapHistoryRepository = overnightSwapHistoryRepository; _orderReader = orderReader; _threadSwitcher = threadSwitcher; _dateService = dateService; _accountManager = accountManager; _marginSettings = marginSettings; _log = log; }
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> >(); }