public void InitializeBlacklistManager(TypeNode type)
 {
     if (_blacklistManager == null)
     {
         _blacklistManager = ConfigurationFactory.CreateFrom(type, new ConfigurationFileLocator());
     }
 }
        public void CreateFrom_NoConfigurationFilesFound()
        {
            var typeNode = IntrospectionUtility.TypeNodeFactory <ConfigurationFileLocatorTest>();
            var configurationFileLocatorStub = MockRepository.GenerateStub <IConfigurationFileLocator>();

            configurationFileLocatorStub.Stub(mock => mock.GetFilesFromCurrentAssembly()).Return(new string[0]);
            configurationFileLocatorStub.Stub(mock => mock.GetFilesFromParsedType(typeNode)).Return(new string[0]);

            var configuration = ConfigurationFactory.CreateFrom(typeNode, configurationFileLocatorStub);

            Assert.That(configuration, Is.InstanceOf <LayeredConfigurationAdapter>());

            var layeredConfigurationAdapter = (LayeredConfigurationAdapter)configuration;

            Assert.That(layeredConfigurationAdapter.Configurations, Is.Empty);
        }