예제 #1
0
        public void TestResolveChainWithExplicitDependance()
        {
            IIoCChain obj = CastleTest1.Resolve <IIoCChain>("needValue", 98);

            Assert.That(obj.TheBase.Value, Is.EqualTo(98));
        }
예제 #2
0
        public void TestResolveChainWithExplicitDependance2()
        {
            IIoCChain obj = CastleTest1.ResolveWithName <IIoCChain>("ChainDependant2", "needValue", 97);

            Assert.That(obj.TheBase.Value, Is.EqualTo(97));
        }
예제 #3
0
 public void TestResolveComponentWithUncompleteDependance()
 {
     IIoCChain obj = CastleTest1.Resolve <IIoCChain>();
 }