Exemplo n.º 1
0
        public void Can_register_single_component_specifying_service_and_implementation_using_non_generic_registration()
        {
            container.Register(
                Component.For(typeof(IComponentA)).ImplementedBy(typeof(ComponentA))
                );

            Assert.That(container.HasComponent(typeof(IComponentA)));
        }
Exemplo n.º 2
0
 public void HasComponent_verifies_that_component_is_actually_registered_using_service_type()
 {
     container.Register(Component.For <IComponentA>().ImplementedBy <ComponentA>());
     container.HasComponent(typeof(IComponentA)).Should().Be.True();
 }