public void ToString_ReturnsDestination_GivenDestination()
        {
            var url = "url";
            var sut = new RepositoryDestination(url);

            Assert.Equal(url, sut.ToString());
        }
 public CompositePipe <AnalysisResults> Create()
 => new CompositePipe <AnalysisResults>(
     new ConditionalPipe <AnalysisResults>(
         r => Directory.Exists(_repositoryDestination.ToString()),
         CreateFileDataReaderPipe(),
         new CompositePipe <AnalysisResults>(
             GenerateData().Concat(CreateFileDataReaderPipe()).ToArray())));
Example #3
0
        public override IEnumerator <ICommandResult> GetEnumerator()
        {
            string dest = _repositoryDestination.ToString();

            var result = ProcessRunner.RunCommand(
                dest,
                _fileNameToRun);

            yield return(new GeneratedDataResult(result));
        }
        public override IEnumerator <ICommandResult> GetEnumerator()
        {
            CopyBenchmarkingFilesToDestination(_repositoryDestination.ToString());

            yield return(new CopyFilesResult("success"));
        }
 public override IEnumerator <ICommandResult> GetEnumerator()
 {
     yield return(new DataAnalysisResult(
                      File.ReadAllText(Path.Combine(_repositoryDestination.ToString(), _fileToRead)),
                      _type));
 }
 public override IEnumerator <ICommandResult> GetEnumerator()
 {
     yield return(new CloneResult(ProcessRunner.RunGitCommand(
                                      $"clone {_repositoryUrl.ToString()} {_repositoryDestination.ToString()}")));
 }