Esempio n. 1
0
        public void Container_Instance_ShouldNotBeAServiceOrFactory()
        {
            Container.Instance <IInterface_1>(new Implementation_1_No_Dep());

            AbstractServiceEntry entry = Container.Get <IInterface_1>(QueryModes.ThrowOnError);

            Assert.That(entry.IsInstance());
            Assert.False(entry.IsService());
            Assert.False(entry.IsFactory());
        }