public void FrameworkContainerForCastle_With_Child_Container_Must_One_Child_Test1() { FrameworkContainerForCastle container = new FrameworkContainerForCastle(); container.RegisterType <IMockSimple, MockSimple>(); FrameworkContainerForCastleChild child = new FrameworkContainerForCastleChild("child", container); child.RegisterType <IMockConstructorInject, MockConstructorInject>(); Assert.IsTrue(container.Childs.Count() == 1, "container 에 하나의 자식 Container 를 등록하였지만, Childs 개수가 {0} 이라 오류입니다.", container.Childs.Count()); }
public void FrameworkContainerForCastle_With_Child_Container_Must_One_Child_Test1() { FrameworkContainerForCastle container = new FrameworkContainerForCastle(); container.RegisterType<IMockSimple, MockSimple>(); FrameworkContainerForCastleChild child = new FrameworkContainerForCastleChild("child", container); child.RegisterType<IMockConstructorInject, MockConstructorInject>(); Assert.IsTrue( container.Childs.Count() == 1, "container 에 하나의 자식 Container 를 등록하였지만, Childs 개수가 {0} 이라 오류입니다.", container.Childs.Count()); }