public void Configure() { var configuration = ConfigurationSectionHandler.GetConfiguration(); if (configuration.Components.Count == 0) { throw new ConfigurationErrorsException("There are no components defined to externally configure the container in the application configuration file."); } this.RegisterInternal(configuration); }
public void Should_require_meta_graph_uri() { Assert.Throws <ConfigurationErrorsException>(() => ConfigurationSectionHandler.GetConfiguration("missingMetaGraph")); }