<commit_before>﻿using System.Net.Http;
using FplClient.Clients;
using NUnit.Framework;

namespace FplClient.Tests.Clients
{
    public class FplLeagueClientTests
    {
        private TestContext _context;

        [SetUp]
        public void Setup()
        {
            _context = new TestContext();
        }

        [Test]
        public void Retrieves_classic_league_data_successfully()
        {
            var leagueData = _context.Sut.GetClassicLeague(207496).Result;

            Assert.IsNotNull(leagueData);
            Assert.IsTrue(leagueData.Standings.Entries.Count > 0);
        }

        [Test]
        public void Retrieves_classic_league_data_from_next_page_successfully()
        {
            var leagueData = _context.Sut.GetClassicLeague(33, 2).Result;

            Assert.IsNotNull(leagueData);
            Assert.IsTrue(leagueData.Standings.Entries.Count > 0);
        }

        [Test]
        public void Retrieves_head_to_head_league_data_successfully()
        {
            var leagueData = _context.Sut.GetHeadToHeadLeague(272222).Result;

            Assert.IsNotNull(leagueData);
            Assert.IsTrue(leagueData.Standings.Entries.Count > 0);
        }

        private class TestContext
        {
            public TestContext()
            {
                Sut = new FplLeagueClient(() => new HttpClient());
            }

            public FplLeagueClient Sut { get; }
        }
    }
}<commit_msg>Fixed id in unit test<commit_after>﻿using System.Net.Http;
using FplClient.Clients;
using NUnit.Framework;

namespace FplClient.Tests.Clients
{
    public class FplLeagueClientTests
    {
        private TestContext _context;

        [SetUp]
        public void Setup()
        {
            _context = new TestContext();
        }

        [Test]
        public void Retrieves_classic_league_data_successfully()
        {
            var leagueData = _context.Sut.GetClassicLeague(33).Result;

            Assert.IsNotNull(leagueData);
            Assert.IsTrue(leagueData.Standings.Entries.Count > 0);
        }

        [Test]
        public void Retrieves_classic_league_data_from_next_page_successfully()
        {
            var leagueData = _context.Sut.GetClassicLeague(33, 2).Result;

            Assert.IsNotNull(leagueData);
            Assert.IsTrue(leagueData.Standings.Entries.Count > 0);
        }

        [Test]
        public void Retrieves_head_to_head_league_data_successfully()
        {
            var leagueData = _context.Sut.GetHeadToHeadLeague(751846).Result;

            Assert.IsNotNull(leagueData);
            Assert.IsTrue(leagueData.Standings.Entries.Count > 0);
        }

        private class TestContext
        {
            public TestContext()
            {
                Sut = new FplLeagueClient(() => new HttpClient());
            }

            public FplLeagueClient Sut { get; }
        }
    }
}
{'fraction_non_alphanumeric': 0.08506224066390042, 'fraction_numerical': 0.011065006915629323, 'mean_word_length': 1.9490316004077473, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6340177', 'n_tokens_mistral': 879, 'n_tokens_neox': 805, 'n_words': 136}