<commit_before>﻿using Attest.Testing.Contracts;
using Attest.Testing.EndToEnd;
using Solid.Bootstrapping;
using Solid.Practices.IoC;
using Solid.Practices.Middleware;

namespace Samples.Specifications.Tests.Infra.Launcher
{
    //TODO: Move to packages - Take into account it should not be Integration/E2E-specific
    public class UseApplicationModulesMiddleware : IMiddleware<IHaveRegistrator>
    {
        public IHaveRegistrator Apply(IHaveRegistrator @object)
        {            
            @object.Registrator                
                .AddSingleton<IStartDynamicApplicationModuleService, StartDynamicApplicationModuleService>()
                .AddSingleton<IStartStaticApplicationModuleService, StartStaticApplicationModuleService>()
                .AddSingleton<ILifecycleService, StaticLifecycleService>()
                .AddSingleton<IStaticSetupService, StaticSetupService>();
            return @object;
        }
    }
}<commit_msg>Minor<commit_after>﻿using Attest.Testing.Contracts;
using Attest.Testing.EndToEnd;
using Solid.Bootstrapping;
using Solid.Practices.IoC;
using Solid.Practices.Middleware;

namespace Samples.Specifications.Tests.Infra.Launcher
{
    //TODO: Move to packages
    public class UseApplicationModulesMiddleware : IMiddleware<IHaveRegistrator>
    {
        public IHaveRegistrator Apply(IHaveRegistrator @object)
        {            
            @object.Registrator                
                .AddSingleton<IStartDynamicApplicationModuleService, StartDynamicApplicationModuleService>()
                .AddSingleton<IStartStaticApplicationModuleService, StartStaticApplicationModuleService>()
                .AddSingleton<ILifecycleService, StaticLifecycleService>()
                .AddSingleton<IStaticSetupService, StaticSetupService>();
            return @object;
        }
    }
}
{'fraction_non_alphanumeric': 0.07313109425785481, 'fraction_numerical': 0.0005417118093174431, 'mean_word_length': 3.11358574610245, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '4156847', 'n_tokens_mistral': 484, 'n_tokens_neox': 469, 'n_words': 78}