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);
        }
示例#2
0
        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();
        }
示例#3
0
 public void ShouldDownloadSourcesFromGitLab() => _target.GetSources("master", TempPath);
示例#4
0
 public void ShouldGetSources() => _target.GetSources("HALO1", @"E:\Temp\GitHub\");
示例#5
0
 public void ShouldDownloadSources() => _ftpPlugin.GetSources("Folder 2", "e:\\temp\\download");
 public void ShouldDownloadSources() => _target.GetSources(@"\Sources\Mopas", @"e:\download\mopas");