Skip to content

Commit

Permalink
Merge pull request #34 from FizzBuzz791/add_testing_interface
Browse files Browse the repository at this point in the history
Added interface to allow for testing
  • Loading branch information
FizzBuzz791 authored Sep 4, 2020
2 parents 9855d9a + 1ae5723 commit 6a1c271
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
**/obj/*
packages/
**/.vs/*
**/lcov.info
**/lcov.info
/.idea/*
*.DotSettings.user
22 changes: 22 additions & 0 deletions NAoCHelper.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NAoCHelper", "Solution\NAoCHelper.csproj", "{A7BEC492-3BA4-460C-B457-78FC1F28D475}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NAoCHelperTests", "Tests\NAoCHelperTests.csproj", "{6F9E0AA6-57DE-4038-8EB7-E14E75DCA4D1}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{A7BEC492-3BA4-460C-B457-78FC1F28D475}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A7BEC492-3BA4-460C-B457-78FC1F28D475}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A7BEC492-3BA4-460C-B457-78FC1F28D475}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A7BEC492-3BA4-460C-B457-78FC1F28D475}.Release|Any CPU.Build.0 = Release|Any CPU
{6F9E0AA6-57DE-4038-8EB7-E14E75DCA4D1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6F9E0AA6-57DE-4038-8EB7-E14E75DCA4D1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6F9E0AA6-57DE-4038-8EB7-E14E75DCA4D1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6F9E0AA6-57DE-4038-8EB7-E14E75DCA4D1}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
9 changes: 9 additions & 0 deletions Solution/IPuzzle.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using System.Threading.Tasks;

namespace NAoCHelper
{
public interface IPuzzle
{
Task<string> GetInputAsync();
}
}
2 changes: 1 addition & 1 deletion Solution/Puzzle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace NAoCHelper
{
public class Puzzle
public class Puzzle : IPuzzle
{
public int Year { get; }
public int Day { get; }
Expand Down

0 comments on commit 6a1c271

Please sign in to comment.