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;
		}
Пример #4
0
 public HasPropertyAndCtorParameterSameTypeDifferentName(IEmptyService emptyService)
 {
     SomeService = emptyService;
 }
Пример #5
0
 public EmptyServiceDecorator(IEmptyService other)
 {
     Other = other;
 }
 public HasNullDefaultForServiceDependency(IEmptyService empty = null)
 {
     Dependency = empty;
 }
Пример #7
0
 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;
		}
Пример #10
0
		public ArrayDepAsConstructor(IEmptyService[] services)
		{
			this.services = services;
		}
Пример #11
0
		public ArrayRefDepAsConstructor(ref IEmptyService[] services)
		{
			this.services = services;
		}
		public HasObjectPropertyAndTypedCtorParameterDifferentName(IEmptyService emptyService)
		{
			SomeService = emptyService;
		}
		public UnresolvalbeDependencyWithAdditionalServiceConstructor(IEmptyService dep)
		{
		}
Пример #14
0
		public UsesIEmptyService(IEmptyService emptyService)
		{
		}
 public HasObjectPropertyAndTypedCtorParameterWithSameName(IEmptyService emptyService)
 {
     EmptyService = emptyService;
 }
Пример #16
0
 public UsesIEmptyService(IEmptyService emptyService)
 {
     EmptyService = emptyService;
 }
		public EmptyServiceDecorator(IEmptyService other)
		{
			Other = other;
		}
Пример #18
0
		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;
 }
Пример #25
0
		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;
		}
Пример #29
0
		public UsesIEmptyService(IEmptyService emptyService)
		{
			instancesCreated++;
			EmptyService = emptyService;
		}
 public HasObjectPropertyAndTypedCtorParameterDifferentName(IEmptyService emptyService)
 {
     SomeService = emptyService;
 }