Ejemplo n.º 1
0
        public API(string url = null, ISwaggerHTTPClient httpClient = null)
        {
            if (!string.IsNullOrWhiteSpace(url))
            {
                this.url = url;
            }
            else
            {
                this.url = "http://localhost:1135";
            }

            if (httpClient == null)
            {
                this.httpClient = new SwaggerHTTPClient();
            }
            else
            {
                this.httpClient = httpClient;
            }
        }
Ejemplo n.º 2
0
        public SwaggerPetstore(string url = null, ISwaggerHTTPClient httpClient = null)
        {
            if (!string.IsNullOrWhiteSpace(url))
            {
                this.url = url;
            }
            else
            {
                this.url = "http://petstore.swagger.io";
            }

            if (httpClient == null)
            {
                this.httpClient = new SwaggerHTTPClient();
            }
            else
            {
                this.httpClient = httpClient;
            }
        }
Ejemplo n.º 3
0
        public DevConfRatings(string url = null, ISwaggerHTTPClient httpClient = null)
        {
            if (!string.IsNullOrWhiteSpace(url))
            {
                this.url = url;
            }
            else
            {
                this.url = "https://localhost:24110";
            }

            if (httpClient == null)
            {
                this.httpClient = new SwaggerHTTPClient();
            }
            else
            {
                this.httpClient = httpClient;
            }
        }