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); }
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 HasNullDefaultForServiceDependency(IEmptyService empty = null) { Dependency = empty; }
public HasPropertyAndCtorParameterSameTypeDifferentName(IEmptyService emptyService) { SomeService = emptyService; }
public EmptyServiceDecorator(IEmptyService other) { Other = other; }
public HasNullDefaultForServiceDependency(IEmptyService empty = null) { Dependency = empty; }
public UsesIEmptyService(IEmptyService emptyService) { instancesCreated++; EmptyService = emptyService; }
public TwoEmptyServiceDependenciesConstructor(IEmptyService one, IEmptyService two) { One = one; Two = two; }
public ThreeEmptyServiceDependenciesPropertyAndManyCtors(IEmptyService one, IDoubleGeneric<int, A> two) { One = one; Two = two; }
public ArrayDepAsConstructor(IEmptyService[] services) { this.services = services; }
public ArrayRefDepAsConstructor(ref IEmptyService[] services) { this.services = services; }
public HasObjectPropertyAndTypedCtorParameterDifferentName(IEmptyService emptyService) { SomeService = emptyService; }
public UnresolvalbeDependencyWithAdditionalServiceConstructor(IEmptyService dep) { }
public UsesIEmptyService(IEmptyService emptyService) { }
public HasObjectPropertyAndTypedCtorParameterWithSameName(IEmptyService emptyService) { EmptyService = emptyService; }
public UsesIEmptyService(IEmptyService emptyService) { EmptyService = emptyService; }
public EmptyServiceDecorator(IEmptyService other) { Other = other; }
public UsesIEmptyService(IEmptyService emptyService) { EmptyService = emptyService; }
public HasObjectPropertyAndTypedCtorParameterWithSameName(IEmptyService emptyService) { EmptyService = emptyService; }
public UnresolvalbeDependencyWithAdditionalServiceConstructor(IEmptyService dep) { }
public ThreeEmptyServiceDependenciesPropertyAndManyCtors(IEmptyService one) { One = one; }
public ThreeEmptyServiceDependenciesPropertyAndManyCtors(IEmptyService one) { One = one; }
public ThreeEmptyServiceDependenciesPropertyAndManyCtors(IEmptyService one, IEmptyService two, IEmptyService three) { One = one; Two = two; Three = three; }
public ThreeEmptyServiceDependenciesPropertyAndManyCtors(IEmptyService one, IEmptyService two, IEmptyService three) { One = one; Two = two; Three = three; }
public EmptyServiceComposite(IEmptyService[] inner) { Inner = inner; }
public TwoEmptyServiceDependenciesConstructor(IEmptyService one, IEmptyService two) { One = one; Two = two; }
public ThreeEmptyServiceDependenciesPropertyAndManyCtors(IEmptyService one, IDoubleGeneric <int, A> two) { One = one; Two = two; }
public HasPropertyAndCtorParameterSameTypeDifferentName(IEmptyService emptyService) { SomeService = emptyService; }
public UsesIEmptyService(IEmptyService emptyService) { instancesCreated++; EmptyService = emptyService; }
public HasObjectPropertyAndTypedCtorParameterDifferentName(IEmptyService emptyService) { SomeService = emptyService; }