Ejemplo n.º 1
0
        public async Task GetOrderThrows()
        {
            var user   = new BinanceApiUser("api-key");
            var symbol = Symbol.BTC_USDT;

            await Assert.ThrowsAsync <ArgumentNullException>("user", () => _client.GetOrderAsync(null, symbol));

            await Assert.ThrowsAsync <ArgumentNullException>("symbol", () => _client.GetOrderAsync(user, null));

            await Assert.ThrowsAsync <ArgumentException>(() => _client.GetOrderAsync(user, symbol));
        }