public async Task TestGetIntegrations() { var getIntegrationsRequest = new GetIntegrationsRequest(); var getIntegrationsResponse = await SkyManager.ApiClient.ExecuteRequestAsync(getIntegrationsRequest); Assert.InRange(getIntegrationsResponse.Content.Count, 0, int.MaxValue); }
static async Task GetAndListIntegrations() { Console.WriteLine("Retrieving integrations"); var getIntegrationsRequest = new GetIntegrationsRequest(); var getIntegrationsResponse = await SkyManager.ApiClient.ExecuteRequestAsync(getIntegrationsRequest); Logger.Info("Found " + getIntegrationsResponse.Content.Count + " integrations."); foreach (var integration in getIntegrationsResponse.Content) { Logger.Info("Integration:"); Logger.Info(integration.Name + " " + integration.Id); } }