Skip to content

Commit 0d8c73a

Browse files
committed
added abstraction for handling results
1 parent e7a9d38 commit 0d8c73a

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

TestStack.ConventionTests/Internal/ConventionContext.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ public ConventionResult[] GetConventionResults<TDataSource>(IConvention<TDataSou
8383
{
8484
if (!data.HasData)
8585
throw new ConventionSourceInvalidException(String.Format("{0} has no data", data.Description));
86-
8786
convention.Execute(data, this);
8887

8988
return ConventionResults;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace TestStack.ConventionTests.Internal
2+
{
3+
public interface IResultsProcessor
4+
{
5+
void Process(ConventionResult result);
6+
}
7+
}

TestStack.ConventionTests/TestStack.ConventionTests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
<Compile Include="Internal\ConventionReportFailure.cs" />
6464
<Compile Include="Internal\ConventionContext.cs" />
6565
<Compile Include="Internal\ConventionResult.cs" />
66+
<Compile Include="Internal\IResultsProcessor.cs" />
6667
<Compile Include="Internal\NoDataFormatterFoundException.cs" />
6768
<Compile Include="Reporting\CsvReporter.cs" />
6869
<Compile Include="Reporting\DefaultFormatter.cs" />

0 commit comments

Comments
 (0)