public static void Main(string[] args) { Console.WriteLine(""); Console.WriteLine("=> Welcome to the Hudson.NET interactive CLI!"); Api api = new Api(); Console.WriteLine("Pinging your Hudson instance..."); List<Job> jobs = api.FetchJobs(); if ( (jobs == null) || (jobs.Count == 0) ) { Console.WriteLine("Looks like Hudson is empty :("); return; } foreach (Job job in jobs) { Console.WriteLine(" {0}\t{1}", job.Color, job.DisplayName); } }
public void RequestProxyConstructor() { Api api = new Api(new Hudson.Internal.RequestProxy()); Assert.IsNotNull(api); }
public void ParameterConstructor() { Api api = new Api("localhost", 8080); Assert.IsNotNull(api); }
public void BasicConstructor() { Api api = new Api(); Assert.IsNotNull(api); }
public void SetUp() { // Using the default configuration (localhost:8080) for testing this.api = new Api(); }