Skip to content

Commit

Permalink
r Move RuleEvalAction(s) to own file
Browse files Browse the repository at this point in the history
  • Loading branch information
Fyzxs committed Dec 8, 2021
1 parent 7f4a5e7 commit c6e5bff
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
12 changes: 0 additions & 12 deletions TddLikeYouMeanIt/FizzBuzzTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,5 @@ public Answer Transform(int source)

return new Default_RuleEvalAction().Act(turnCount);
}
public interface IRuleEvalAction
{
public Answer Act(TurnCount turnCount);
}

public sealed class Default_RuleEvalAction : IRuleEvalAction
{
public Answer Act(TurnCount turnCount)
{
return new InputAsStringAnswer(turnCount);
}
}
}
}
17 changes: 17 additions & 0 deletions TddLikeYouMeanIt/RuleEvalAction.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using TddLikeYouMeanIt.lib;

namespace TddLikeYouMeanIt
{
public interface IRuleEvalAction
{
public Answer Act(TurnCount turnCount);
}

public sealed class Default_RuleEvalAction : IRuleEvalAction
{
public Answer Act(TurnCount turnCount)
{
return new InputAsStringAnswer(turnCount);
}
}
}

0 comments on commit c6e5bff

Please sign in to comment.