Exemple #1
0
 public TestDataUtilities(
     ITransactionPortfoliosApi transactionPortfoliosApi,
     IInstrumentsApi instrumentsApi,
     IQuotesApi quotesApi,
     IStructuredMarketDataApi structuredMarketDataApi)
 {
     _transactionPortfoliosApi = transactionPortfoliosApi;
     _instrumentsApi           = instrumentsApi;
     _quotesApi = quotesApi;
     _structuredMarketDataApi = structuredMarketDataApi;
 }
        public void SetUp()
        {
            var apiFactory = LusidApiFactoryBuilder.Build("secrets.json");

            _transactionPortfoliosApi = apiFactory.Api <ITransactionPortfoliosApi>();

            _testDataUtilities = new TestDataUtilities(_transactionPortfoliosApi);

            var instrumentsLoader = new InstrumentLoader(apiFactory);

            _instrumentIds = instrumentsLoader.LoadInstruments().OrderBy(x => x).ToList();
        }
Exemple #3
0
        public void SetUp()
        {
            var apiFactory = LusidApiFactoryBuilder.Build("secrets.json");

            _instrumentsApi           = apiFactory.Api <IInstrumentsApi>();
            _transactionPortfoliosApi = apiFactory.Api <ITransactionPortfoliosApi>();

            var instrumentLoader = new InstrumentLoader(apiFactory);

            _instrumentIds     = instrumentLoader.LoadInstruments();
            _testDataUtilities = new TestDataUtilities(apiFactory.Api <ITransactionPortfoliosApi>());

            _systemConfigurationApi = apiFactory.Api <ISystemConfigurationApi>();
        }
Exemple #4
0
 public TestDataUtilities(ITransactionPortfoliosApi transactionPortfoliosApi)
 {
     _transactionPortfoliosApi = transactionPortfoliosApi;
 }