Castle.ClassInheritanceTestCase.Can_proxy_multiple_class_services_and_interfaces_incl_generic_with_inherited_implementation C# (CSharp) Méthode

Can_proxy_multiple_class_services_and_interfaces_incl_generic_with_inherited_implementation() private méthode

		public void Can_proxy_multiple_class_services_and_interfaces_incl_generic_with_inherited_implementation()
		{
			RegisterInterceptor();
			Container.Register(Component.For<IGeneric<IEmployee>, JohnParent, IEmptyService, JohnGrandparent>().ImplementedBy(typeof(JohnChild))
			                   	.LifeStyle.Transient.Interceptors<CountingInterceptor>());

			var obj = Container.Resolve<JohnParent>();

			Assert.IsTrue(IsProxy(obj));
			Assert.IsInstanceOf<JohnChild>(obj);
			Assert.IsInstanceOf<IEmptyService>(obj);
			Assert.IsInstanceOf<IGeneric<IEmployee>>(obj);
		}