async Task <IEnumerable <SwarmService> > ISwarmOperations.ListServicesAsync(ServicesListOptions options, CancellationToken cancellationToken = default(CancellationToken))
        {
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            IQueryString queryParameters = new QueryString <ServicesListOptions>(options);

            var response = await this._client.MakeRequestAsync(new[] { SwarmResponseHandler }, HttpMethod.Get, $"services", queryParameters, cancellationToken).ConfigureAwait(false);

            return(this._client.JsonSerializer.DeserializeObject <SwarmService[]>(response.Body));
        }
        public async Task GetListServicesAsync_Succeeds()
        {
            var options = new ServicesListOptions();

            options.Filters = new Dictionary <string, IDictionary <string, bool> >
            {
                {
                    "name", new Dictionary <string, bool>
                    {
                        { "myfaas_alertmanager", false }
                    }
                }
            };

            var result = await _client.Swarm.ListServicesAsync(options);
        }