public BitfinexOrderBookTests() { _log = new LogToConsole(); var settingsManager = BitfinexHelpers.GetBitfinexSettingsMenager(); _bitfinexConfiguration = settingsManager.CurrentValue; _orderBookHandler = new Mock <IHandler <OrderBook> >().Object; _tickPriceHandler = new Mock <IHandler <TickPrice> >().Object; }
public BitfinexOrderBookTests() { _log = new LogToConsole(); var settingsManager = BitfinexHelpers.GetBitfinexSettingsMenager(); _bitfinexConfiguration = settingsManager.CurrentValue; var orderBookEventsStorage = AzureTableStorage <OrderBookEventEntity> .Create( settingsManager.ConnectionString(i => _tableStorageEndpoint), _orderBookEventsTable, _log); var orderBookSnapshotStorage = AzureTableStorage <OrderBookSnapshotEntity> .Create( settingsManager.ConnectionString(i => _tableStorageEndpoint), _snapshotsTable, _log); var azureBlobStorage = AzureBlobStorage.Create( settingsManager.ConnectionString(i => _blobStorageEndpoint)); _snapshotsRepository = new OrderBookSnapshotsRepository(orderBookSnapshotStorage, azureBlobStorage, _log); _eventsRepository = new OrderBookEventsRepository(orderBookEventsStorage, _log); _orderBookHandler = new Mock <IHandler <OrderBook> >().Object; _tickPriceHandler = new Mock <IHandler <TickPrice> >().Object; }