From 821942719188bd163f886234e148d95646d8f827 Mon Sep 17 00:00:00 2001 From: "t.stamma" Date: Mon, 30 Mar 2020 16:24:06 +0200 Subject: [PATCH] Added a little test --- .../HubSpot.NET.Examples.csproj | 1 + HubSpot.NET.Examples/Pipelines.cs | 34 +++++++++++++++++++ HubSpot.NET.Examples/Program.cs | 3 +- 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 HubSpot.NET.Examples/Pipelines.cs diff --git a/HubSpot.NET.Examples/HubSpot.NET.Examples.csproj b/HubSpot.NET.Examples/HubSpot.NET.Examples.csproj index 729a42ce..ee5e8e4c 100644 --- a/HubSpot.NET.Examples/HubSpot.NET.Examples.csproj +++ b/HubSpot.NET.Examples/HubSpot.NET.Examples.csproj @@ -52,6 +52,7 @@ + diff --git a/HubSpot.NET.Examples/Pipelines.cs b/HubSpot.NET.Examples/Pipelines.cs new file mode 100644 index 00000000..c3147ea3 --- /dev/null +++ b/HubSpot.NET.Examples/Pipelines.cs @@ -0,0 +1,34 @@ +using HubSpot.NET.Api.Pipeline.Dto; +using HubSpot.NET.Core; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HubSpot.NET.Examples +{ + public class Pipelines + { + internal static void Example(HubSpotApi api) + { + try + { + Tests(api); + Console.WriteLine("Pipelines tests completed successfully!"); + } + catch (Exception ex) + { + Console.WriteLine("Pipelines tests failed!"); + Console.WriteLine(ex.ToString()); + } + } + + private static void Tests(HubSpotApi api) + { + //Get a list of pipelines and stages + var list = api.Pipelines.List("deals", "INCLUDE_DELETED"); + + } + } +} diff --git a/HubSpot.NET.Examples/Program.cs b/HubSpot.NET.Examples/Program.cs index 2a76d4cb..c84fb9d2 100644 --- a/HubSpot.NET.Examples/Program.cs +++ b/HubSpot.NET.Examples/Program.cs @@ -100,9 +100,10 @@ private static void RunApiKeyExamples(HubSpotApi hapiApi) { //EmailSubscriptions.Example(hapiApi); //Deals.Example(hapiApi); - Contacts.Example(hapiApi); + //Contacts.Example(hapiApi); //Companies.Example(hapiApi); //CompanyProperties.Example(hapiApi); + Pipelines.Example(hapiApi); } private static void RunOAuthExamples(HubSpotApi oauthApi)