mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-20 21:27:10 +00:00
add default api client
This commit is contained in:
@@ -27,7 +27,7 @@ namespace SwaggerClient.TestConfiguration
|
||||
{
|
||||
PetApi p = new PetApi ("http://new-basepath.com");
|
||||
Assert.AreEqual (p.Configuration.ApiClient.BasePath, "http://new-basepath.com");
|
||||
Assert.AreSame (p.Configuration, Configuration.DefaultConfiguration);
|
||||
Assert.AreSame (p.Configuration, Configuration.Default);
|
||||
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace SwaggerClient.TestConfiguration
|
||||
PetApi p2 = new PetApi ();
|
||||
Assert.AreSame (p1.Configuration, p2.Configuration);
|
||||
// same as the default
|
||||
Assert.AreSame (p1.Configuration, Configuration.DefaultConfiguration);
|
||||
Assert.AreSame (p1.Configuration, Configuration.Default);
|
||||
|
||||
Configuration c = new Configuration ();
|
||||
Assert.AreNotSame (c, p1.Configuration);
|
||||
|
||||
Reference in New Issue
Block a user