public void ParseTableReturnCorrectNumberOfElements()
        {
            string html = GetTestData("active-stock");

            IReadOnlyList <Sale> sales = _serializer.ParseTable(html);

            Assert.That(sales.Count, Is.EqualTo(837));
        }
Esempio n. 2
0
        /// <exception cref="NodeNotFoundException" />
        public IReadOnlyList <Sale> For(ShareType stock)
        {
            Uri    uri  = new Uri($"https://portfolio.hu/arfolyam/koteslista/{stock.Name}");
            string html = webClient.DownloadString(uri);

            return(deserializer.ParseTable(html));
        }