Catel.Test.IoC.TypeFactoryFacts.TheCreateInstanceWithAutoCompletionMethod.CreatesTypeWithInjectionConstructorAttribute C# (CSharp) Method

CreatesTypeWithInjectionConstructorAttribute() private method

private CreatesTypeWithInjectionConstructorAttribute ( ) : void
return void
            public void CreatesTypeWithInjectionConstructorAttribute()
            {
                var typeFactory = TypeFactory.Default;

                var instance = typeFactory.CreateInstance<ClassWithSeveralMatchesForDependencyInjection>();

                Assert.IsTrue(instance.IsRightConstructorUsed);
            }