public static string MakeCommandURL(string baseUrl, WebServiceCommand command)
 {
     if (!baseUrl.EndsWith("/"))
     {
         baseUrl += '/';
     }
     return(baseUrl + CommandName(command));
 }
        static string CommandName(WebServiceCommand command)
        {
            switch (command)
            {
            case WebServiceCommand.Inspect:
                return("inspect");

            case WebServiceCommand.Lookup:
                return("lookup");

            default:
                throw new ArgumentOutOfRangeException(nameof(command), command, null);
            }
        }