public TcProjects CreateTCProjects(Dictionary<string, string> projectConfigs) { var tcProjects = new TcProjects(); projectConfigs.Keys.ForEach(pc => { var tcProject = new ProjectFileParser().Parse(projectConfigs[pc]); tcProject.ProjectName = DirectoryAndFileOperations.GetFolderNameFromPath(pc); tcProjects.Add(tcProject); }); return tcProjects; }
public void SetUp() { path = "path"; tcProjects = new TcProjects(); var tcProject1 = new TcProject("Project1"); var blankList = new List<string>(); tcProject1.BuildConfigurations.Add(new TcBuildConfiguration("BC1", "Build", blankList, blankList, true, null)); tcProject1.BuildConfigurations.Add(new TcBuildConfiguration("BC2", "UnitTest", new List<string> { "BC1" }, blankList, false, null)); tcProject1.BuildConfigurations.Add(new TcBuildConfiguration("BC3", "Artifacts", new List<string> { "BC2" }, new List<string> { "BC4", "BC5" }, false, null)); tcProject1.BuildConfigurations.Add(new TcBuildConfiguration("BC4", "ContractTest1", blankList, blankList, false, null)); tcProject1.BuildConfigurations.Add(new TcBuildConfiguration("BC5", "ContractTest2", blankList, blankList, false, null)); tcProjects.Add(tcProject1); }