public void SubversionOnLocalhostShouldBeUpAndRunning()
		{
			ConnectionSettings settings = new SubversionPluginProfile();

			settings.Uri = "https://localhost:443/svn/IntegrationTest";
			settings.Login = "******";
			settings.Password = "******";

			new Subversion.Subversion(settings, ObjectFactory.GetInstance<ICheckConnectionErrorResolver>(),
			                          ObjectFactory.GetInstance<IActivityLogger>(), ObjectFactory.GetInstance<IDiffProcessor>());
		}
        public void SubversionOnLocalhostShouldBeUpAndRunning()
        {
            ConnectionSettings settings = new SubversionPluginProfile();

            settings.Uri      = "https://localhost:443/svn/IntegrationTest";
            settings.Login    = "******";
            settings.Password = "******";

            new Subversion.Subversion(settings, ObjectFactory.GetInstance <ICheckConnectionErrorResolver>(),
                                      ObjectFactory.GetInstance <IActivityLogger>(), ObjectFactory.GetInstance <IDiffProcessor>());
        }
Ejemplo n.º 3
0
        private SubversionPluginProfile Parse(PluginProfile legacyProfile, XmlDocument document)
        {
            var result = new SubversionPluginProfile();
            var root   = document.SelectSingleNode("./Settings");

            result.Uri = GetValueByName(root, "PathToProject");

            var syncIntervalValue = GetValueByName(root, "SyncInterval");

            if (!string.IsNullOrEmpty(syncIntervalValue))
            {
                result.SynchronizationInterval = Int32.Parse(syncIntervalValue);
            }

            result.Login    = GetValueByName(root, "SubversionLogin");
            result.Password = GetValueByName(root, "SubversionPassword");

            result.StartRevision = GetStartRevision(legacyProfile, root);

            var userMapping = GetValueByName(root, "Maps");
            var parser      = new LegacyMappingParser();

            if (!string.IsNullOrEmpty(userMapping))
            {
                parser.Maps = userMapping;
            }
            foreach (string svnUser in parser.Users.Keys)
            {
                var tpUser = GetUserBy(parser.Users[svnUser], x => x.Login);
                if (tpUser != null)
                {
                    result.UserMapping.Add(new MappingElement {
                        Key = svnUser, Value = Create(tpUser)
                    });
                    continue;
                }

                tpUser = GetUserBy(parser.Users[svnUser], x => x.Email);
                if (tpUser != null)
                {
                    result.UserMapping.Add(new MappingElement {
                        Key = svnUser, Value = Create(tpUser)
                    });
                }
            }

            return(result);
        }
 public void GivenProfile()
 {
     _settings = new SubversionPluginProfile();
 }
Ejemplo n.º 5
0
 public void GivenProfile()
 {
     _settings = new SubversionPluginProfile();
 }