public void RegisterAll_NullConfigurationSource()
 {
     var builder = new ContainerBuilder();
     var configurator = new AutofacContainerConfigurator(builder);
     var rootProvider = new StubRegistrationProvider();
     Assert.Throws<ArgumentNullException>(() => configurator.RegisterAll(null, rootProvider));
 }
        public void RegisterAll_NullConfigurationSource()
        {
            var builder      = new ContainerBuilder();
            var configurator = new AutofacContainerConfigurator(builder);
            var rootProvider = new StubRegistrationProvider();

            Assert.Throws <ArgumentNullException>(() => configurator.RegisterAll(null, rootProvider));
        }
 private IContainer ExecuteRegisterAllOnValidConfigurator()
 {
     var builder = new ContainerBuilder();
     var configurator = new AutofacContainerConfigurator(builder);
     var configurationSource = new NullConfigurationSource();
     var rootProvider = new StubRegistrationProvider();
     configurator.RegisterAll(configurationSource, rootProvider);
     return builder.Build();
 }
        private IContainer ExecuteRegisterAllOnValidConfigurator()
        {
            var builder             = new ContainerBuilder();
            var configurator        = new AutofacContainerConfigurator(builder);
            var configurationSource = new NullConfigurationSource();
            var rootProvider        = new StubRegistrationProvider();

            configurator.RegisterAll(configurationSource, rootProvider);
            return(builder.Build());
        }