Пример #1
0
        public async Task TestGetGlobalDataAsync()
        {
            var globalData = await PublicApi.GetGlobalDataAsync();

            Assert.IsNotNull(globalData, "globalData is null");
            Assert.IsNotNull(globalData.TotalMarketCapUSD, "globalData.TotalMarketCapUSD is null");

            globalData = await PublicApi.GetGlobalDataAsync(currency : "INR");

            Assert.IsNotNull(globalData, "globalData is null");
            Assert.IsNotNull(globalData.TotalMarketCapUSD, "globalData.TotalMarketCapUSD is null");
            Assert.IsNotNull(globalData.TotalMarketCapINR, "globalData.TotalMarketCapINR is null");
        }