public void ToString_ReturnsDestination_GivenDestination() { var url = "url"; var sut = new RepositoryDestination(url); Assert.Equal(url, sut.ToString()); }
public GenerateDataCommand( RepositoryDestination repositoryDestination, string fileNameToRun) { _repositoryDestination = repositoryDestination; _fileNameToRun = fileNameToRun; }
public void Equality_RepositoryDestinationsEqualEachOther_GivenTwoIdenticalDestinations() { var url = "url"; var sut = new RepositoryDestination(url); var expected = new RepositoryDestination(url); Assert.Equal(expected, sut); }
public DataAnalysisPipeline( IFileCopier fileCopier, RepositoryUrl repositoryUrl, RepositoryDestination repositoryDestination) { _fileCopier = fileCopier; _repositoryUrl = repositoryUrl; _repositoryDestination = repositoryDestination; }
public void Should_PassRepositoryDestination_When_DestinationGiven() { var dest = new RepositoryDestination("destination"); var sut = new PipelineFactory(Mock.Of <IFileCopier>()); DataAnalysisPipeline result = (DataAnalysisPipeline)sut.CreateDataAnalysisPipeline( new RepositoryUrl("url"), dest); Assert.Same(dest, result.RepositoryDestination); }
public FileDataReaderCommand( string fileToRead, DataAnalysisResultType type, RepositoryDestination repositoryDestination) { if (fileToRead == null) { throw new ArgumentNullException(nameof(fileToRead)); } _fileToRead = fileToRead; _type = type; _repositoryDestination = repositoryDestination; }
public CopyFilesToDestinationCommand( IFileCopier fileCopier, RepositoryDestination repositoryDestination) { if (fileCopier == null) { throw new ArgumentNullException(nameof(fileCopier)); } if (repositoryDestination == null) { throw new ArgumentNullException(nameof(repositoryDestination)); } _fileCopier = fileCopier; _repositoryDestination = repositoryDestination; }
public CloneGitRepositoryCommand( RepositoryUrl repositoryUrl, RepositoryDestination repositoryDestination) { if (repositoryUrl == null) { throw new ArgumentNullException(nameof(repositoryUrl)); } if (repositoryDestination == null) { throw new ArgumentNullException(nameof(repositoryDestination)); } _repositoryUrl = repositoryUrl; _repositoryDestination = repositoryDestination; }
public void Destination_EqualsGivenValue_GivenUrl(string dest) { var sut = new RepositoryDestination(dest); Assert.Equal(dest, sut.Destination); }
private CommandVisitorPipe CreateFileDataReaderPipe( string fileToRead, DataAnalysisResultType type, RepositoryDestination destination) => new CommandVisitorPipe( new FileDataReaderCommand(fileToRead, type, destination));
protected virtual void Save(TDest t) { RepositoryDestination.Update(t); }
protected virtual void Insert(TDest t) { RepositoryDestination.Insert(t); }
protected virtual TDest FetchDest(Guid id) { return(RepositoryDestination.Get(id)); }
public PipelineFactoryBuilder SetRepositoryDestination(string repositoryDestination) { _repositoryDestination = new RepositoryDestination(repositoryDestination); return(this); }