Catel.Test.IoC.TypeFactoryFacts.TheCreateInstanceMethod.CallsCustomInitializationWhenNeeded C# (CSharp) 메소드

CallsCustomInitializationWhenNeeded() 개인적인 메소드

private CallsCustomInitializationWhenNeeded ( ) : void
리턴 void
            public void CallsCustomInitializationWhenNeeded()
            {
                var serviceLocator = IoCFactory.CreateServiceLocator();
                var typeFactory = serviceLocator.ResolveType<ITypeFactory>();

                var instance = typeFactory.CreateInstance<DependencyInjectionTestClass>();
                Assert.IsTrue(instance.HasCalledCustomInitialization);
            }