-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
124 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
src/Ninject.Extensions.Factory.Test/Fakes/DecoratedCustomizableWeapon.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
//------------------------------------------------------------------------------- | ||
// <copyright file="Sword.cs" company="Ninject Project Contributors"> | ||
// Copyright (c) 2009-2011 Ninject Project Contributors | ||
// Authors: Remo Gloor ([email protected]) | ||
// | ||
// Dual-licensed under the Apache License, Version 2.0, and the Microsoft Public License (Ms-PL). | ||
// you may not use this file except in compliance with one of the Licenses. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// or | ||
// http://www.microsoft.com/opensource/licenses.mspx | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// </copyright> | ||
//------------------------------------------------------------------------------- | ||
|
||
namespace Ninject.Extensions.Factory.Fakes | ||
{ | ||
public class DecoratedCustomizableWeapon : ICustomizableWeapon | ||
{ | ||
public ICustomizableWeapon WeaponToBeDecorated { get; private set; } | ||
|
||
public DecoratedCustomizableWeapon(ICustomizableWeapon weaponToBeDecorated) | ||
{ | ||
WeaponToBeDecorated = weaponToBeDecorated; | ||
} | ||
|
||
public string Name | ||
{ | ||
get { return WeaponToBeDecorated.Name; } | ||
} | ||
|
||
public int Width | ||
{ | ||
get { return WeaponToBeDecorated.Width; } | ||
} | ||
|
||
public int Length | ||
{ | ||
get { return WeaponToBeDecorated.Length; } | ||
} | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
src/Ninject.Extensions.Factory.Test/Fakes/DecoratedWeapon.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
//------------------------------------------------------------------------------- | ||
// <copyright file="Sword.cs" company="Ninject Project Contributors"> | ||
// Copyright (c) 2009-2011 Ninject Project Contributors | ||
// Authors: Remo Gloor ([email protected]) | ||
// | ||
// Dual-licensed under the Apache License, Version 2.0, and the Microsoft Public License (Ms-PL). | ||
// you may not use this file except in compliance with one of the Licenses. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// or | ||
// http://www.microsoft.com/opensource/licenses.mspx | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// </copyright> | ||
//------------------------------------------------------------------------------- | ||
|
||
namespace Ninject.Extensions.Factory.Fakes | ||
{ | ||
public class DecoratedWeapon : IWeapon | ||
{ | ||
public IWeapon WeaponToBeDecorated { get; private set; } | ||
|
||
public DecoratedWeapon(IWeapon weaponToBeDecorated) | ||
{ | ||
WeaponToBeDecorated = weaponToBeDecorated; | ||
} | ||
|
||
public string Name | ||
{ | ||
get { return "decorated " + WeaponToBeDecorated.Name; } | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters