Ejemplo n.º 1
0
        public void GetUserTradeByOrderIdExpected()
        {
            var oid = (string)this.TestContext.Properties["OrderId"];

            using (var client = new BitsoClient(this.TestingServerUrl, this.ApiKey, this.ApiSecret))
            {
                try
                {
                    var res = client.GetUserTradeByOrderId(oid);

                    Assert.IsNotNull(res);
                    Assert.AreNotEqual <decimal>(0M, res[0].Price);

                    var diff = res[0].CreatedAt - default(System.DateTime);
                    Assert.IsTrue(diff > System.TimeSpan.Zero);
                }
                catch (BitsoException ex)
                {
                    this.TestContext.WriteLine(ex.Header);
                    throw;
                }
            }
        }