public void SingletonLifeCycle()
        {
            IContainer container = new IocContainer.Container();

            container.RegisterSingletonType <ITest2, ClassTest2>();

            ITest2 obj1 = container.Resolve <ITest2>();

            container.RegisterSingletonType <ITest2, ClassTest2>();

            ITest2 obj2 = container.Resolve <ITest2>();

            Assert.Equal(obj2.Hash(), obj1.Hash());
        }
        public void SingletonRegistration()
        {
            IContainer container = new IocContainer.Container();

            container.RegisterSingletonType <ITest1, ClassTest1>();

            ITest1 obj1 = container.Resolve <ITest1>();

            Assert.Equal("ClassTest1", obj1.Name());
        }