public void TestImplementsConcrete()
        {
            context.ScannedPackages = new string[] {
                "strange.unittests.annotated.testConcrete"
            };
            context.Start();

            TestConcreteClass testConcreteClass = context.injectionBinder.GetInstance <TestConcreteClass>() as TestConcreteClass;

            Assert.IsNotNull(testConcreteClass);
        }
示例#2
0
 public TestServiceWithMixedDependencies(ITestInterface testInterface, TestAbstractClass testAbstractClass, TestConcreteClass testConcreteClass)
 {
     TestInterface     = testInterface;
     TestAbstractClass = testAbstractClass;
     TestConcreteClass = testConcreteClass;
 }