Created
July 28, 2017 01:23
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Cake.Core; | |
using Cake.Core.Diagnostics; | |
using Cake.Core.IO; | |
using Cake.Core.Tooling; | |
using FakeItEasy; | |
namespace Cake.AppSettingReplacer.Tests | |
{ | |
public class FakeCakeContext : ICakeContext | |
{ | |
public IFileSystem FileSystem { get; } | |
public ICakeEnvironment Environment { get; } | |
public IGlobber Globber { get; } | |
public ICakeLog Log { get; } | |
public ICakeArguments Arguments { get; } | |
public IProcessRunner ProcessRunner { get; } | |
public IRegistry Registry { get; } | |
public IToolLocator Tools { get; } | |
public FakeCakeContext() | |
{ | |
FileSystem = A.Fake<IFileSystem>(); | |
Environment = A.Fake<ICakeEnvironment>(); | |
Globber = A.Fake<IGlobber>(); | |
Log = A.Fake<ICakeLog>(); | |
Arguments = A.Fake<ICakeArguments>(); | |
ProcessRunner = A.Fake<IProcessRunner>(); | |
Registry = A.Fake<IRegistry>(); | |
Tools = A.Fake<IToolLocator>(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment