コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }