public static IBuildMetaData GetPackageTreeParts(List <Dependency> dependencies, List <SourceControl> exportList) { var buildEngine = new BuildEngineStub(new BuildToolStub(), null, dependencies); var buildMetaData = new BuildMetaDataStub(buildEngine, null); buildMetaData.ExportList.AddRange(exportList); return(buildMetaData); }
public static IBuildMetaData GetPackageTreeParts(List <Dependency> dependencies, List <IRepositoryElement> repositoryElements) { var buildEngine = new BuildEngineStub(new BuildToolStub(), null, dependencies); var buildMetaData = new BuildMetaDataStub(buildEngine, null); buildMetaData.RepositoryElementList.AddRange(repositoryElements); return(buildMetaData); }
public static IBuildMetaData GetPackageTreeParts(List <Dependency> dependencies, List <string> cmds) { var buildEngine = new BuildEngineStub(new BuildToolStub(), null, dependencies); var sourceControl = new SourceControlDouble("http://someurl.com"); var buildMetaData = new BuildMetaDataStub(buildEngine, sourceControl); buildMetaData.PrebuildCommandList.AddRange(cmds); return(buildMetaData); }