示例#1
0
        public async Task TestGetIntegrations()
        {
            var getIntegrationsRequest = new GetIntegrationsRequest();

            var getIntegrationsResponse = await SkyManager.ApiClient.ExecuteRequestAsync(getIntegrationsRequest);

            Assert.InRange(getIntegrationsResponse.Content.Count, 0, int.MaxValue);
        }
示例#2
0
    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);
        }
    }