예제 #1
0
		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);
			}
		}
예제 #2
0
파일: Api.cs 프로젝트: rtyler/Hudson.NET
		public void RequestProxyConstructor()
		{
			Api api = new Api(new Hudson.Internal.RequestProxy());

			Assert.IsNotNull(api);
		}
예제 #3
0
파일: Api.cs 프로젝트: rtyler/Hudson.NET
		public void ParameterConstructor()
		{
			Api api = new Api("localhost", 8080);

			Assert.IsNotNull(api);
		}
예제 #4
0
파일: Api.cs 프로젝트: rtyler/Hudson.NET
		public void BasicConstructor()
		{
			Api api = new Api();

			Assert.IsNotNull(api);
		}
예제 #5
0
파일: Api.cs 프로젝트: rtyler/Hudson.NET
		public void SetUp()
		{
			// Using the default configuration (localhost:8080) for testing
			this.api = new Api();
		}