Ejemplo n.º 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();
        }
Ejemplo n.º 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>();
        }
Ejemplo n.º 4
0
 public TestDataUtilities(ITransactionPortfoliosApi transactionPortfoliosApi)
 {
     _transactionPortfoliosApi = transactionPortfoliosApi;
 }