public void GetCurrencyById_WrongCurrency_ThrowsException()
        {
            ICoinmarketcapClient m_Sut = new CoinmarketcapClient();
            Action act = () => m_Sut.GetCurrencyById("AnyWrongCurrency");

            act.ShouldThrow <AggregateException>().Where(e => e.InnerExceptions[0].Message.Contains("404"));
        }
        public void GetCurrencyById_Bitcoin_ReturnBitcoinDetail()
        {
            ICoinmarketcapClient m_Sut    = new CoinmarketcapClient();
            Currency             currency = m_Sut.GetCurrencyById("bitcoin");

            currency.Id.Should().Be("bitcoin");
            currency.Symbol.Should().Be("BTC");
            currency.PriceConvert.Should().BeNull();
            currency.MarketCapConvert.Should().BeNull();
            currency.Volume24Convert.Should().BeNull();
        }
        public void GetCurrencyById_PivxInEur_ReturnPivxDetail()
        {
            ICoinmarketcapClient m_Sut    = new CoinmarketcapClient();
            Currency             currency = m_Sut.GetCurrencyById("pivx", "EUR");

            currency.Id.Should().Be("pivx");
            currency.Symbol.Should().Be("PIVX");
            currency.PriceConvert.Should().NotBeNullOrEmpty();
            currency.MarketCapConvert.Should().NotBeNullOrEmpty();
            currency.Volume24Convert.Should().NotBeNullOrEmpty();
            currency.ConvertCurrency.Should().Be("EUR");
        }