public void Can_windsor_service_provider_return_null_when_service_not_found() { var provider = new WindsorServiceProvider(Container); var service = provider.GetService <IEmptyService>(); Assert.IsNull(service); }
public void Can_windsor_service_provider_resolve_services() { Container.Register(Component.For<IEmptyService>().ImplementedBy<EmptyServiceA>()); WindsorServiceProvider provider = new WindsorServiceProvider(Container); IEmptyService service = provider.GetService<IEmptyService>(); Assert.IsNotNull(service); }
public void Can_windsor_service_provider_resolve_services() { Container.Register(Component.For <IEmptyService>().ImplementedBy <EmptyServiceA>()); var provider = new WindsorServiceProvider(Container); var service = provider.GetService <IEmptyService>(); Assert.IsNotNull(service); }
public void Can_windsor_service_provider_return_null_when_service_not_found() { WindsorServiceProvider provider = new WindsorServiceProvider(Container); IEmptyService service = provider.GetService<IEmptyService>(); Assert.IsNull(service); }