diff --git a/Cake.FileHelpers.Tests/Cake.FileHelpers.Tests.csproj b/Cake.FileHelpers.Tests/Cake.FileHelpers.Tests.csproj index 232b5db..042a27f 100644 --- a/Cake.FileHelpers.Tests/Cake.FileHelpers.Tests.csproj +++ b/Cake.FileHelpers.Tests/Cake.FileHelpers.Tests.csproj @@ -1,23 +1,18 @@  - netcoreapp2.0 - - - + + - - - - + \ No newline at end of file diff --git a/Cake.FileHelpers.Tests/Fakes/FakeCakeContext.cs b/Cake.FileHelpers.Tests/Fakes/FakeCakeContext.cs index 0dd96be..0957969 100755 --- a/Cake.FileHelpers.Tests/Fakes/FakeCakeContext.cs +++ b/Cake.FileHelpers.Tests/Fakes/FakeCakeContext.cs @@ -27,11 +27,12 @@ public FakeCakeContext () var args = new FakeCakeArguments (); var processRunner = new ProcessRunner (environment, log); var registry = new WindowsRegistry (); - + + var dataService = new FakeDataService(); var toolRepository = new ToolRepository(environment); var toolResolutionStrategy = new ToolResolutionStrategy(fileSystem, environment, globber, new FakeConfiguration()); IToolLocator tools = new ToolLocator(environment, toolRepository, toolResolutionStrategy); - context = new CakeContext (fileSystem, environment, globber, log, args, processRunner, registry, tools); + context = new CakeContext (fileSystem, environment, globber, log, args, processRunner, registry, tools, dataService); context.Environment.WorkingDirectory = testsDir; } diff --git a/Cake.FileHelpers.Tests/Fakes/FakeDataService.cs b/Cake.FileHelpers.Tests/Fakes/FakeDataService.cs new file mode 100644 index 0000000..a70255c --- /dev/null +++ b/Cake.FileHelpers.Tests/Fakes/FakeDataService.cs @@ -0,0 +1,14 @@ +using System; +using Cake.Core; + +namespace Cake.Xamarin.Tests.Fakes { + public class FakeDataService : ICakeDataService { + public TData Get() where TData : class { + throw new NotImplementedException(); + } + + public void Add(TData value) where TData : class { + throw new NotImplementedException(); + } + } +} \ No newline at end of file diff --git a/Cake.FileHelpers/Cake.FileHelpers.csproj b/Cake.FileHelpers/Cake.FileHelpers.csproj index df1d457..edab053 100644 --- a/Cake.FileHelpers/Cake.FileHelpers.csproj +++ b/Cake.FileHelpers/Cake.FileHelpers.csproj @@ -1,11 +1,9 @@ - - + netstandard2.0;net46 1.6.1 true - Cake.FileHelpers Cake.FileHelpers @@ -18,14 +16,11 @@ https://raw.githubusercontent.com/cake-contrib/Cake.FileHelpers/master/icon.png https://raw.githubusercontent.com/cake-contrib/Cake.FileHelpers/master/LICENSE.md - - - - + + - - + \ No newline at end of file