private GrandParent_of_impl_can_be_the_service ( ) : void | ||
리턴 | void |
public void GrandParent_of_impl_can_be_the_service()
{
Container.Register(Component.For<JohnGrandparent>().ImplementedBy<JohnChild>());
var grandparent = Container.Resolve<JohnGrandparent>();
Assert.IsInstanceOf<JohnChild>(grandparent);
}