AppHarbor.Test.IntegrationTests.Create_Get_Delete_Servicehook C# (CSharp) Method

Create_Get_Delete_Servicehook() private method

private Create_Get_Delete_Servicehook ( ) : void
return void
		public void Create_Get_Delete_Servicehook()
		{
			EnsureApplication();

			var result = Api.CreateServicehook(ApplicationSlug, "http://somehost.com");
			Assert.IsNotNull(result);
			Assert.IsNotNull(result.Id);
			Assert.AreEqual(CreateStatus.Created, result.Status);

			var item = Api.GetServicehook(ApplicationSlug, result.Id);
			Assert.IsNotNull(item);
			Assert.AreEqual(result.Id, item.Id);
			Assert.AreEqual("http://somehost.com", item.Value);

			Api.DeleteServicehook(ApplicationSlug, result.Id);
		}