Refactored the Kernel registration fluent interface to be more readable, better suppo...
[castle.git] / InversionOfControl / Castle.Windsor.Tests / Components / Robot.cs
blob7ba7997340c075e18dc9d0b7ab4daacb651f567f
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 implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 namespace Castle.Windsor.Tests.Components
17 public interface IArm
19 void Rotate(float degree);
20 float GetLength();
23 public class PlasmaGunArm : IArm
25 public void Rotate(float degree)
29 public float GetLength()
31 return 2.0f;
35 public class HumanArm : IArm
37 public void Rotate(float degree)
41 public float GetLength()
43 return 1.0f;
47 public class Robot
49 public Robot(IArm left, IArm right)
51 Left = left;
52 Right = right;
55 public IArm Left;
57 public IArm Right;