Exemplo n.º 1
0
        private async Task TestListInstrumentsAsync(CancellationToken cancellationToken)
        {
            var instruments = await _restClient.ListInstrumentsAsync(cancellationToken).ConfigureAwait(false);

            var toPrint = string.Join('\n', instruments.Select(i => i.ToString()));

            _logger.LogInformation($"Instruments:\n{toPrint}");
        }
        public async Task Test_ListInstrumentsAsync()
        {
            var instruments = await _restClient.ListInstrumentsAsync(_token).ConfigureAwait(false);

            instruments.Should().HaveCountGreaterThan(0);
        }