private List<string> GetLogs()
 {
     SVNManager manager = new SVNManager();
     var config = (SVNConfiguration)ConfigurationManager.GetSection("SVN");
     foreach (var repo in Repos)
     {
         log.InfoFormat("Generating xml for : {0}", repo.Url);
         manager.Generate(repo.Url, repo.CurrentVersion);
     }
     return manager.Files;
 }
 public void GetReposLogsTest()
 {           
     var url = @"file:///C:/users/leonardo.kobus/desktop/games/gamification/SVNExtension.UnitTest/bin/Debug/RepositorioNET";
     int initialRelease = 0;
     using (var manager = new SVNManager())
     {
         manager.Generate(url, initialRelease);
         Assert.IsTrue(Directory.GetFiles("SVNReports").Length > 0);
     }
     Assert.IsTrue(!Directory.Exists("SVNReports"));
 }
        private List <string> GetLogs()
        {
            SVNManager manager = new SVNManager();
            var        config  = (SVNConfiguration)ConfigurationManager.GetSection("SVN");

            foreach (var repo in Repos)
            {
                log.InfoFormat("Generating xml for : {0}", repo.Url);
                manager.Generate(repo.Url, repo.CurrentVersion);
            }
            return(manager.Files);
        }
        public void GetReposByOneRevisionAhed()
        {
            var url = @"file:///C:/users/leonardo.kobus/desktop/games/gamification/SVNExtension.UnitTest/bin/Debug/RepositorioNET";
            int initialRelease = 2;
            using (var manager = new SVNManager())
            {
                var reader = new SVNReader(initialRelease);
                manager.Generate(url, initialRelease);

                foreach (var file in manager.Files)
                {
                    var users = reader.Read(file);
                    Assert.AreEqual(0, users.Count);
                }                
            }
        }
        public void GetRepostLogByRevisionTest()
        {
            var url = @"file:///C:/users/leonardo.kobus/desktop/games/gamification/SVNExtension.UnitTest/bin/Debug/RepositorioNET";
            int initialRelease = 0;
            using (var manager = new SVNManager())
            {
                manager.Generate(url, initialRelease);
                var reader = new SVNReader(initialRelease);
                foreach (var file in manager.Files)
                {
                    var users = reader.Read(file);
                    Assert.AreEqual(1, users.Count);

                    foreach (var user in users)
                    {
                        Assert.AreEqual(10, ((SVNModel)user.ExtensionPoint["SVNExtension"]).Add);
                        Assert.AreEqual(2, reader.CurrentRevision);                        
                        Assert.AreEqual(0, ((SVNModel)user.ExtensionPoint["SVNExtension"]).Deleted);                        
                        Assert.AreEqual(0, ((SVNModel)user.ExtensionPoint["SVNExtension"]).Modified);
                    }
                }
            }
        }