<commit_before>﻿using Common;
using Models;
using NUnit.Framework;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace ApiHttpClient.Tests
{
    [TestFixture]
    public class TruckTests
    {
        [Test]
        public async Task Getting_All_Drivers()
        {
            //IEnumerable<IApiCallResult> drivers = await dispatcher.GetMany<Driver>("drivers");
            // Assert required
        }

        [Test]
        public async Task TestSeeTrucks()
        {
            var client = new ApiHttpClient.Dispatcher();
            IEnumerable<IApiCallResult> trucks = await client.GetMany<Truck>("trucks");
            List<Truck> targetList = new List<Truck>(trucks.Cast<Truck>());
            Assert.AreEqual(trucks.Count(),11);
        }
    }
}
<commit_msg>testing see one truck by id<commit_after>﻿using Common;
using Models;
using NUnit.Framework;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace ApiHttpClient.Tests
{
    [TestFixture]
    public class TruckTests
    {
        [Test]
        public async Task Getting_All_Drivers()
        {
            //IEnumerable<IApiCallResult> drivers = await dispatcher.GetMany<Driver>("drivers");
            // Assert required
        }

        [Test]
        public async Task Test_See_Trucks()
        {
            var client = new ApiHttpClient.Dispatcher();
            IEnumerable<IApiCallResult> trucks = await client.GetMany<Truck>("trucks");
            List<Truck> targetList = new List<Truck>(trucks.Cast<Truck>());
            Assert.AreEqual(trucks.Count(),11);
        }

        [Test]
        public async Task Test_See_Truck_By_ID()
        {
            var client = new ApiHttpClient.Dispatcher();
            IApiCallResult truck = await client.Get<Truck>("trucks", "1");
            Truck kamion = (Truck)truck;
            Assert.AreEqual(kamion.Id, "1");
        }
    }
}

{'fraction_non_alphanumeric': 0.10745501285347044, 'fraction_numerical': 0.003084832904884319, 'mean_word_length': 2.3726169844020797, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, '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': '4666864', 'n_tokens_mistral': 580, 'n_tokens_neox': 574, 'n_words': 118}