public void TestAutoCreateComponent()
        {
            var refs = new ManagedReferences();

            var factory = new DefaultLoggerFactory();

            refs.Put(null, factory);

            var logger = refs.GetOneRequired <ILogger>(new Descriptor("*", "logger", "*", "*", "*"));

            Assert.NotNull(logger);
        }
        public void TestStringLocator()
        {
            var refs = new ManagedReferences();

            var factory = new DefaultLoggerFactory();

            refs.Put(null, factory);

            var component = refs.GetOneOptional("ABC");

            Assert.Null(component);
        }