Added testcase for generic registrations and a workaround for the CLR GetInterfaces...
[castle.git] / InversionOfControl / Castle.MicroKernel.Tests / ClassComponents / CustomerChain.cs
blobea0c18b44dc6b70ecbb9ea7cd91514817ad563d0
1 // Copyright 2004-2008 Castle Project - http://www.castleproject.org/
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or Chainied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 namespace Castle.MicroKernel.Tests.ClassComponents
17 using System;
19 public class CustomerChain1 : CustomerImpl
21 public ICustomer CustomerBase;
23 public CustomerChain1(ICustomer customer)
25 CustomerBase = customer;
29 public class CustomerChain2 : CustomerChain1
31 public CustomerChain2(ICustomer customer) : base(customer)
36 public class CustomerChain3 : CustomerChain1
38 public CustomerChain3(ICustomer customer) : base(customer)
43 public class CustomerChain4 : CustomerChain1
45 public CustomerChain4(ICustomer customer) : base(customer)
50 public class CustomerChain5 : CustomerChain1
52 public CustomerChain5(ICustomer customer) : base(customer)
57 public class CustomerChain6 : CustomerChain1
59 public CustomerChain6(ICustomer customer) : base(customer)
64 public class CustomerChain7 : CustomerChain1
66 public CustomerChain7(ICustomer customer) : base(customer)
71 [Serializable]
72 public class CustomerChain8 : CustomerChain1
74 public CustomerChain8(ICustomer customer) : base(customer)
79 [Serializable]
80 public class CustomerChain9 : CustomerChain1
82 public CustomerChain9(ICustomer customer) : base(customer)