public void Setup()
 {
     Transport = new JenkinsTransportExtension();
     var settings = new Settings()
     {
         Project = String.Empty,
         Username = String.Empty,
         Password = String.Empty,
         Server = "https://builds.apache.org/"
     };
     Transport.Settings = settings.ToString();
     Transport.Configuration = new BuildServer(settings.Server);
 }
コード例 #2
0
        public void Setup()
        {
            Transport = new JenkinsTransportExtension();
            var settings = new Settings()
            {
                Project  = String.Empty,
                Username = String.Empty,
                Password = String.Empty,
                Server   = "https://builds.apache.org/"
            };

            Transport.Settings      = settings.ToString();
            Transport.Configuration = new BuildServer(settings.Server);
        }
コード例 #3
0
        private JenkinsTransportExtension CreateTestTarget(TestMocks mocks)
        {
            var Transport = new JenkinsTransportExtension();

            var settings = new Settings()
            {
                Project  = String.Empty,
                Username = String.Empty,
                Password = String.Empty,
                Server   = "https://builds.apache.org/"
            };

            Transport.JenkinsServerManagerFactory = mocks.JenkinsServerManagerFactory;
            Transport.WebRequestFactory           = mocks.WebRequestFactory;
            Transport.JenkinsApiFactory           = mocks.JenkinsApiFactory;
            Transport.ConfigurationFormFactory    = mocks.ConfigurationFormFactory;
            Transport.DialogService = mocks.DialogService;

            Transport.Settings      = settings.ToString();
            Transport.Configuration = new BuildServer(settings.Server);

            return(Transport);
        }
        private JenkinsTransportExtension CreateTestTarget(TestMocks mocks)
        {
            var Transport = new JenkinsTransportExtension();

            var settings = new Settings()
            {
                Project = String.Empty,
                Username = String.Empty,
                Password = String.Empty,
                Server = "https://builds.apache.org/"
            };

            Transport.JenkinsServerManagerFactory = mocks.JenkinsServerManagerFactory;
            Transport.WebRequestFactory = mocks.WebRequestFactory;
            Transport.JenkinsApiFactory = mocks.JenkinsApiFactory;
            Transport.ConfigurationFormFactory = mocks.ConfigurationFormFactory;
            Transport.DialogService = mocks.DialogService;

            Transport.Settings = settings.ToString();
            Transport.Configuration = new BuildServer(settings.Server);

            return Transport;
        }
        public static void SetIsServerManagerInitialized(this JenkinsTransportExtension instance, bool value)
        {
            var field = typeof(JenkinsTransportExtension).GetField("_isServerManagerInitialized", BindingFlags.NonPublic | BindingFlags.GetField | BindingFlags.Static);

            field.SetValue(instance, value);
        }