public void SvnConnectionValidationTest()
        {
            const string path = "http://jsdksrv01:1080/svn/Repo3";
            const string user = "******";
            const string password = "******";

            SvnServiceEntity entity = new SvnServiceEntity();
            entity.Path = path;
            entity.UserName = user;
            entity.Password = password;
            Assert.IsTrue(Facade.Instance.ValidateConnection(entity));

            entity.Password = "******";
            Assert.IsFalse(Facade.Instance.ValidateConnection(entity));

            entity.Path = "http://example.com/wrong/path";
            Assert.IsFalse(Facade.Instance.ValidateConnection(entity));
        }
        protected SvnServiceEntity CreateEntity()
        {
            SvnServiceEntity entity = new SvnServiceEntity();
            entity.Password = password;
            entity.UserName = username;
            entity.Path = path;
            entity.ReferenceExpression = "^[A-Z]{1,2}-\\d+$";
            entity.Timer = new TimerEntity();
            entity.Timer.PublishClass = "VersionOne.ServiceHost.SourceServices.Subversion.SvnReaderHostedService+SvnReaderIntervalSync, VersionOne.ServiceHost.SourceServices";

            return entity;
        }
        internal static SvnServiceEntity CreateSvnServiceEntity()
        {
            var entity = new SvnServiceEntity {
                Path = "svn://MySourceControlServer/MyRepo",
                Password = string.Empty,
                UserName = string.Empty,
                ReferenceExpression = "<![CDATA[[A-Z]{1,2}-[0-9]+]]>"
            };

            return entity;
        }