public DotnetTests(ITestOutputHelper testOutput) { _console = new TestConsole(testOutput); _service = new Dotnet(_fileSystem, _console, new PlatformService(_runtimeInfoMock.Object, _fileSystem, _console)); _successfulTests = new Project("SampleSuccessfulTests", new DirectoryInfo(Directory.GetCurrentDirectory()) .GetFiles("SampleSuccessfulTests.csproj", SearchOption.AllDirectories) .First() .FullName); _failedTests = new Project("SampleFailedTests", new DirectoryInfo(Directory.GetCurrentDirectory()) .GetFiles("SampleFailedTests.csproj", SearchOption.AllDirectories) .First() .FullName); _application = new Project("SampleApp", new DirectoryInfo(Directory.GetCurrentDirectory()) .GetFiles("SampleApp.csproj", SearchOption.AllDirectories) .First() .FullName); _applicationError = new Project("SampleAppError", new DirectoryInfo(Directory.GetCurrentDirectory()) .GetFiles("SampleAppError.csproj", SearchOption.AllDirectories) .First() .FullName); _applicationLong = new Project("SampleAppLong", new DirectoryInfo(Directory.GetCurrentDirectory()) .GetFiles("SampleAppLong.csproj", SearchOption.AllDirectories) .First() .FullName); }
public DotnetTests() { var option = new DotnetOption { WorkingFolder = WorkingFolder }; _commandRunner = new Mock <ICommandRunner>(); _projectCrawler = new Mock <IProjectCrawler>(); _dotnet = new Dotnet(option, _commandRunner.Object, _projectCrawler.Object); }
public Application(Configuration configuration, string solutionPath, IRuntime runtime, ILogger logger, IInput input, IGit git, IErrorHandler errors, IDotnet dotnet, IFilesystem filesystem) { _configuration = configuration; _solutionPath = solutionPath; _runtime = runtime; _logger = logger; _input = input; _git = git; _errors = errors; _dotnet = dotnet; _filesystem = filesystem; }
public CleanupService(IDotnet dotnetService, IFileSystem fileSystem, IConsole console) { _dotnetService = dotnetService; _fileSystem = fileSystem; _console = console; }