<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CIAUTH.Configuration;
using NUnit.Framework;

namespace CIAUTH.Tests.Configuration
{
    [TestFixture]
    public class ConfigurationFixture
    {
        [Test]
        public void Noid()
        {
            var section = CIAUTHConfigurationSection.Instance;

            Assert.AreEqual("123, 217, 19, 11, 24, 26, 85, 45, 114, 184, 27, 162, 37, 112, 222, 209, 241, 24, 175, 144, 173, 53, 196, 29, 24, 26, 17, 218, 131, 236, 53, 209", section.AesKey);
            Assert.AreEqual("146, 64, 191, 111, 23, 3, 113, 119, 231, 121, 221, 112, 79, 32, 114, 156", section.AesVector);
            Assert.AreEqual("https://ciapi.cityindex.com/tradingapi", section.ApiUrl);
            Assert.AreEqual("CIAUTH", section.AppKey);
            Assert.AreEqual(1,section.Clients.Count);


            var ordinalindex = section.Clients[0];
            var index = section.Clients["123"];
            Assert.AreSame(ordinalindex,index);

            Assert.AreEqual("456", index.Secret);
            Assert.AreEqual("Demo App", index.Name);
            Assert.AreEqual("123", index.Id);
            Assert.AreEqual("*", index.Hosts);
            Assert.AreEqual("http://foo.bar.com", index.AboutURL);
        }
    }
}<commit_msg>fixed test fail due to added client.<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CIAUTH.Configuration;
using NUnit.Framework;

namespace CIAUTH.Tests.Configuration
{
    [TestFixture]
    public class ConfigurationFixture
    {
        [Test]
        public void Noid()
        {
            var section = CIAUTHConfigurationSection.Instance;

            Assert.AreEqual("123, 217, 19, 11, 24, 26, 85, 45, 114, 184, 27, 162, 37, 112, 222, 209, 241, 24, 175, 144, 173, 53, 196, 29, 24, 26, 17, 218, 131, 236, 53, 209", section.AesKey);
            Assert.AreEqual("146, 64, 191, 111, 23, 3, 113, 119, 231, 121, 221, 112, 79, 32, 114, 156", section.AesVector);
            Assert.AreEqual("https://ciapi.cityindex.com/tradingapi", section.ApiUrl);
            Assert.AreEqual("CIAUTH", section.AppKey);
            Assert.AreEqual(2,section.Clients.Count);


            var ordinalindex = section.Clients[0];
            var index = section.Clients["123"];
            Assert.AreSame(ordinalindex,index);

            Assert.AreEqual("456", index.Secret);
            Assert.AreEqual("Demo App", index.Name);
            Assert.AreEqual("123", index.Id);
            Assert.AreEqual("*", index.Hosts);
            Assert.AreEqual("http://foo.bar.com", index.AboutURL);
        }
    }
}
{'fraction_non_alphanumeric': 0.14029180695847362, 'fraction_numerical': 0.10026187803965582, 'mean_word_length': 2.584450402144772, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2137909', 'n_tokens_mistral': 1079, 'n_tokens_neox': 809, 'n_words': 202}