AddRegistry() public method

public AddRegistry ( string registryTypeName ) : void
registryTypeName string
return void
        public void graphbuilder_can_add_a_registry_directly()
        {
            var graph = new PluginGraph();
            var builder = new GraphBuilder(new Registry[0], graph);
            builder.AddRegistry(typeof (XmlFileRegistry).AssemblyQualifiedName);

            var container = new Container(graph);
            TheXmlFileRegistryWasLoadedInto(container);
        }
        public void handles_failures_gracefully_if_the_registry_cannot_be_loaded()
        {
            //290
            var graph = new PluginGraph();
            var builder = new GraphBuilder(graph);
            builder.AddRegistry("an invalid type name");

            graph.Log.ErrorCount.ShouldEqual(1);
            graph.Log.AssertHasError(290);
        }