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