/// <summary>
        /// Creates a <see cref="HttpClient"/> for the specified gateway.
        /// </summary>
        /// <param name="factory"></param>
        /// <param name="gateway"></param>
        public static HttpClient CreateClient(this IHttpClientFactory factory, IGateway gateway)
        {
            if (factory == null)
            {
                throw new ArgumentNullException(nameof(factory));
            }
            if (gateway == null)
            {
                throw new ArgumentNullException(nameof(gateway));
            }

            return(factory.CreateClient(gateway.GetCompleteGatewayName()));
        }