public void ShouldCommitChangesToTfs() { const string branch = "$/Mopas/sources/master"; const string featureBranch = "vuln"; const string folderPath = @"e:\temp\del_me_now\"; _target.GetSources(branch, folderPath); var branchId = _target.CreateBranch(folderPath, featureBranch, branch).Id; var message = DateTime.UtcNow.ToString("F"); var content = Encoding.UTF8.GetBytes(message); _target.Commit(folderPath, branchId, message, "Web.config", content); }
public void ShouldCreateBranchInGitLab() { var branches = _target.GetBranches(); var testBranch = branches.Single(_ => _.Name == "master"); _target.GetSources(testBranch.Id, TempPath); var result = _target.CreateBranch(TempPath, "DelMe", testBranch.Id); result.Should().NotBeNull(); }
public void ShouldDownloadSourcesFromGitLab() => _target.GetSources("master", TempPath);
public void ShouldGetSources() => _target.GetSources("HALO1", @"E:\Temp\GitHub\");
public void ShouldDownloadSources() => _ftpPlugin.GetSources("Folder 2", "e:\\temp\\download");
public void ShouldDownloadSources() => _target.GetSources(@"\Sources\Mopas", @"e:\download\mopas");