public void RegisterType(Type type, string itemNamePrefix) { foreach (IFactory f in this.allFactories) { f.RegisterType(type, itemNamePrefix); } }
public void CustomAgnosticTests() { var cif = new ConfigurationItemFactory(); cif.RegisterType(typeof(CustomRendererAgnostic), string.Empty); Layout l = new SimpleLayout("${customAgnostic}", cif); l.Initialize(null); Assert.True(l.IsThreadAgnostic); }