public void Bar()
 {
     var connector = new SvnConnector();
     connector.Revision += connector_ChangeSet;
     connector.Error += connector_Error;
     connector.SetAuthentication("Autobuild", "autobuild1");
     connector.Poke("file:///svn/repo2/SVNRss/Tags/Build", 16);
 }
 public void Baz()
 {
     var connector = new SvnConnector();
     connector.Revision += connector_ChangeSet;
     connector.Error += connector_Error;
     connector.SetAuthentication("Autobuild", "autobuild1");
     Dictionary<string, Dictionary<string, string>> properties =
         connector.GetProperies("svn://svn/1/Tags/Build/VersionOne.APIClient/52", 914, true);
 }
        public void TestGetRevisionProperty()
        {
            var connector = new SvnConnector();
            connector.Error += connector_Error;
            connector.SetAuthentication("Donald", string.Empty);

            string path = "svn://svn/1";
            RevisionPropertyCollection props = connector.GetRevisionProperties(path, 1);

            Assert.AreEqual(props["svn:author"], "Patrick");
            Assert.AreEqual(props["svn:log"], "Created Trunk");
            Assert.AreEqual(props["svn:date"], "2007-04-13T18:19:11.840126Z");
        }
        public void TestSetRevisionProperty()
        {
            var connector = new SvnConnector();
            connector.Error += connector_Error;
            connector.SetAuthentication("donald", "password");
            string path = "svn://lithium/Test";
            string propname = "v1:Test";
            string propval = DateTime.Now.ToString("u");
            int revision = 1;

            int changedrev = connector.SetRevisionProperty(path, revision, propname, propval);
            Assert.AreEqual(revision, changedrev);
            RevisionPropertyCollection props = connector.GetRevisionProperties(path, revision);
            Assert.AreEqual(props[propname], propval);
        }