Example #1
0
        public void TestDeserializeCryptopia()
        {
            CryptopiaAPI             api       = new CryptopiaAPI();
            List <CryptopiaCurrency> priceList = api.LoadPrice();

            Assert.AreEqual(true, priceList.Count > 0);
        }
Example #2
0
 private void LoadCryptopiaPrice()
 {
     try
     {
         _cryptopiaCoinsPrice = _cpAPI.LoadPrice();
     }
     catch (Exception err)
     {
         Debug.WriteLine("Warning: " + err.Message);
     }
 }
Example #3
0
        public void TestLoadCurrencyFromCryptopia()
        {
            CryptopiaAPI             api   = new CryptopiaAPI();
            List <CryptopiaCurrency> coins = api.LoadPrice();

            foreach (ExchangeCurrency coin in coins)
            {
                Debug.WriteLine(string.Format("{0} bid={1} ask={2} last={3} volume={4} ", coin.symbol, coin.bid, coin.ask, coin.last, coin.volume));
            }
            Assert.AreEqual(true, coins.Count > 0);
        }