Пример #1
0
        public void ClassFactory_ResolveNewInstance_Returns_New_Instances_Of_Singletons()
        {
            _ClassFactory.Register <ISi, Si>();

            var instance1 = _ClassFactory.ResolveNewInstance(typeof(ISi));
            var instance2 = _ClassFactory.ResolveNewInstance(typeof(ISi));

            Assert.AreNotSame(instance1, instance2);
        }