Exemplo n.º 1
0
        public void GetLedgerFeeExpected()
        {
            using (var client = new BitsoClient(this.TestingServerUrl, this.ApiKey, this.ApiSecret))
            {
                try
                {
                    var res = client.GetLedgerFee();
                    Assert.IsNotNull(res);
                    Assert.AreNotEqual <int>(0, res.Count);
                    Assert.IsFalse(string.IsNullOrEmpty(res[0].Details.OrderId));
                    Assert.AreNotEqual <long>(0, res[0].Details.TradeId);

                    res = client.GetLedgerFee(string.Empty, SortDirection.Ascending, 5);
                    Assert.IsNotNull(res);
                    Assert.AreEqual <int>(5, res.Count);
                }
                catch (BitsoException ex)
                {
                    this.TestContext.WriteLine(ex.Header);
                    throw;
                }
            }
        }