Exemplo n.º 1
0
        public void Can_Parse_PlayerResults()
        {
            var scrapper = new Core.Services.TennisNzScrapper.PlayerProfilePage();

            List <Match> matches = scrapper.GetPlayerResults(_playerIdAnthonyMarshall);

            Assert.IsNotNull(matches);
            Assert.IsTrue(matches.Count > 0);
        }
Exemplo n.º 2
0
        public void Can_Get_PlayerProfile()
        {
            var scrapper = new Core.Services.TennisNzScrapper.PlayerProfilePage();

            var player = scrapper.GetPlayerProfile(_playerIdAnthonyMarshall);

            Assert.IsNotNull(player);
            Assert.IsTrue(player.Name == "Anthony Marshall");
        }