<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using CprBroker.Providers.CPRDirect;

namespace CprBroker.Tests.CPRDirect
{
    namespace IndividualResponseTests
    {
        [TestFixture]
        public class ToRegistreringType1
        {
            [Test]
            public void ToRegistreringType1_()
            {
                var individual = IndividualResponseType.ParseBatch(Properties.Resources.PNR_0101965058).First();
                var registration = individual.ToRegistreringType1(pnr => Guid.NewGuid(), DateTime.Today);
                Assert.NotNull(registration);
            }
        }
    }
}
<commit_msg>Unite test for conversion of parsed change set (CPR Direct)<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using CprBroker.Providers.CPRDirect;

namespace CprBroker.Tests.CPRDirect
{
    namespace IndividualResponseTests
    {
        [TestFixture]
        public class ToRegistreringType1
        {
            [Test]
            public void ToRegistreringType1_()
            {
                var individual = IndividualResponseType.ParseBatch(Properties.Resources.PNR_0101965058).First();
                var registration = individual.ToRegistreringType1(pnr => Guid.NewGuid(), DateTime.Today);
                Assert.NotNull(registration);
            }

            [Test]
            public void ToRegistreringType1_Parsed_Passes(
                [Range(0, 79)]int index)
            {
                var result = IndividualResponseType.ParseBatch(Properties.Resources.U12170_P_opgavenr_110901_ADRNVN_FE);
                var ret = result[index].ToRegistreringType1(cpr => Guid.NewGuid(), DateTime.Today);
            }

        }
    }
}

{'fraction_non_alphanumeric': 0.08055113937466879, 'fraction_numerical': 0.022257551669316374, 'mean_word_length': 2.173109243697479, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '5831364', 'n_tokens_mistral': 547, 'n_tokens_neox': 520, 'n_words': 90}