//[Test] public void WithoutId() { NamespaceParserRegistry.RegisterParser(typeof(WcfNamespaceParser)); IApplicationContext ctx = new XmlApplicationContext( ReadOnlyXmlTestResource.GetFilePath("ChannelFactoryObjectDefinitionParserTests.WithoutId.xml", this.GetType())); IDictionary<string, IContract> channels = ctx.GetObjects<IContract>(); Assert.AreEqual(1, channels.Count); }