public void ShouldRegisterConfigureModuleViaConfiguration()
        {
            var sut     = new ManualLocatorConfigure();
            var builder = StartupBuilder.Create();

            builder
            .ConfigureAssemblies(assemblies =>
            {
                assemblies
                .WithAssembliesFromTypes(typeof(StringLogger), typeof(RegistrationConfiguration))
                .WithAssemblyFromType <DryIocLocatorFactory>();
            })
            .ConfigureStartupModules(modules =>
            {
                modules
                .ConfigureLocatorModuleCollection(configureModules =>
                {
                    configureModules.Add(sut);
                })
                .RemoveConfigureModule <BadConfigureModule>();
            })
            .Build(useApplicationContext: false)
            .Run();

            Assert.IsTrue(sut.Executed);
        }
        public void ShouldRunWithNoScanning()
        {
            var sut     = new ManualLocatorConfigure();
            var builder = CreateTestBuilder();

            builder
            .ConfigureAssemblies(a => a.WithNoAssemblyScanning())
            .ConfigureStartupModules(modules =>
            {
                modules
                .ConfigureLocatorModuleCollection(configureModules =>
                {
                    configureModules.Add(sut);
                });
            })
            .Build(useApplicationContext: false)
            .Run();

            Assert.IsTrue(sut.Executed);
            Assert.IsFalse(builder.StartupContext.Configuration.Assemblies.Any());
        }