<commit_before>﻿using Microsoft.Practices.Unity;
using System.Collections.Generic;
using System.Data.Entity;
using vm.Aspects.Model.EFRepository.HiLoIdentity;
using vm.Aspects.Model.Repository;

namespace vm.Aspects.Model.EFRepository.Tests
{
    public partial class TestEFRepository
    {
        public const string ConnectionString = "ModelTests";

        private class TestEFRepositoryRegistrar : ContainerRegistrar
        {
            protected override void DoRegister(
                IUnityContainer container,
                IDictionary<RegistrationLookup, ContainerRegistration> registrations)
            {
                EFRepositoryBase.Registrar.UnsafeRegister(container, registrations, true)
                    //.RegisterTypeIfNot<IDatabaseInitializer<TestEFRepository>, MigrateDatabaseToLatestVersion<TestEFRepository, Configuration>>(registrations, new InjectionConstructor(true))
                    .RegisterTypeIfNot<IDatabaseInitializer<TestEFRepository>, DropCreateDatabaseAlways<TestEFRepository>>(registrations)
                    .RegisterTypeIfNot<IStoreIdProvider, HiLoStoreIdProvider>(registrations, new ContainerControlledLifetimeManager())
                    .RegisterTypeIfNot<IRepository, TestEFRepository>(registrations, HiLoStoreIdProvider.HiLoGeneratorsRepositoryResolveName, new InjectionConstructor(new InjectionParameter<string>(ConnectionString)))
                    .RegisterTypeIfNot<IRepository, TestEFRepository>(registrations, new InjectionConstructor(new InjectionParameter<string>(ConnectionString)))
                    ;
            }
        }

        static readonly ContainerRegistrar _registrar = new TestEFRepositoryRegistrar();

        public static new ContainerRegistrar Registrar
        {
            get { return _registrar; }
        }
    }
}<commit_msg>Just added comments...<commit_after>﻿using Microsoft.Practices.Unity;
using System.Collections.Generic;
using System.Data.Entity;
using vm.Aspects.Model.EFRepository.HiLoIdentity;
using vm.Aspects.Model.Repository;

namespace vm.Aspects.Model.EFRepository.Tests
{
    public partial class TestEFRepository
    {
        public const string ConnectionString = "ModelTests";

        private class TestEFRepositoryRegistrar : ContainerRegistrar
        {
            protected override void DoRegister(
                IUnityContainer container,
                IDictionary<RegistrationLookup, ContainerRegistration> registrations)
            {
                EFRepositoryBase.Registrar.UnsafeRegister(container, registrations, true)
                    //.RegisterTypeIfNot<IDatabaseInitializer<TestEFRepository>, MigrateDatabaseToLatestVersion<TestEFRepository, Configuration>>(registrations, new InjectionConstructor(true))
                    .RegisterTypeIfNot<IDatabaseInitializer<TestEFRepository>, DropCreateDatabaseAlways<TestEFRepository>>(registrations)
                    .RegisterTypeIfNot<IStoreIdProvider, HiLoStoreIdProvider>(registrations, new ContainerControlledLifetimeManager())

                    // the repo used by the HiLo generator
                    .RegisterTypeIfNot<IRepository, TestEFRepository>(registrations, HiLoStoreIdProvider.HiLoGeneratorsRepositoryResolveName, new InjectionConstructor(new InjectionParameter<string>(ConnectionString)))
                    // the repo used by the rest of the tests
                    .RegisterTypeIfNot<IRepository, TestEFRepository>(registrations, new InjectionConstructor(new InjectionParameter<string>(ConnectionString)))
                    ;
            }
        }

        static readonly ContainerRegistrar _registrar = new TestEFRepositoryRegistrar();

        public static new ContainerRegistrar Registrar
        {
            get { return _registrar; }
        }
    }
}
{'fraction_non_alphanumeric': 0.06733562186427251, 'fraction_numerical': 0.0, 'mean_word_length': 3.251402918069585, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '2368422', 'n_tokens_mistral': 924, 'n_tokens_neox': 935, 'n_words': 164}