public void GetLedgerTradeExpected() { using (var client = new BitsoClient(this.TestingServerUrl, this.ApiKey, this.ApiSecret)) { try { var res = client.GetLedgerTrade(); 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.GetLedgerTrade(string.Empty, SortDirection.Ascending, 5); Assert.IsNotNull(res); Assert.AreEqual <int>(5, res.Count); } catch (BitsoException ex) { this.TestContext.WriteLine(ex.Header); throw; } } }