Ejemplo n.º 1
0
        public async Task GetLastCommits()
        {
            var s = new SvnRepositoryStrategy();
            var p = new Project
            {
                Name          = "TestProject",
                RepositoryUrl = "https://silverkey.repositoryhosting.com/svn/silverkey_silverkey_nrea",
            };
            var authInfo = new AuthInfo(Email.Value2, Password.Value2, SourceCodeRepositoryType.Svn);

            var config = new Core.AppConfiguration(@"C:\Repository\TestOldFashion");

            var result = await s.GetLastCommitsAsync(p, config, authInfo, new Core.Runner.CustomLogger(), 10);

            Assert.NotNull(result);
            Assert.NotEmpty(result);
            Assert.Equal(10, result.Count);
        }
Ejemplo n.º 2
0
        public async Task GetLastCommits()
        {
            var s = new GitRepositoryStrategy();
            var p = new Project
            {
                Name          = "TestProject",
                RepositoryUrl = "https://github.com/SherifRefaat/CoronaDeployments.git",
                BranchName    = "main",
            };
            var authInfo = new AuthInfo(Email.Value1, Password.Value1, SourceCodeRepositoryType.Git);

            var config = new Core.AppConfiguration(@"C:\Repository\TestOldFashion");

            var result = await s.GetLastCommitsAsync(p, config, authInfo, new Core.Runner.CustomLogger(), 10);

            Assert.NotNull(result);
            Assert.NotEmpty(result);
            Assert.Equal(10, result.Count);
        }