Permalink
Browse files

Extracted IGreeter interface from Greeter class

  • Loading branch information...
1 parent d795f2f commit 17a853538908c1c2bbd9f0b405921b86b3a60f2a @akhilseth committed Feb 21, 2012
Showing with 10 additions and 1 deletion.
  1. +1 −1 HelloWorld/Greeter.cs
  2. +1 −0 HelloWorld/HelloWorld.csproj
  3. +8 −0 HelloWorld/IGreeter.cs
@@ -5,7 +5,7 @@
namespace HelloWorld
{
- public class Greeter
+ public class Greeter : IGreeter
{
protected string _greeting;
@@ -42,6 +42,7 @@
<ItemGroup>
<Compile Include="Greeter.cs" />
<Compile Include="HelloWorld.cs" />
+ <Compile Include="IGreeter.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
@@ -0,0 +1,8 @@
+using System;
+namespace HelloWorld
+{
+ public interface IGreeter
+ {
+ string Greet(string name);
+ }
+}

0 comments on commit 17a8535

Please sign in to comment.